Java高級教程之SpringCloud-20:SpringCloud Swagger整合SpringCloud Gateway網關

Swagger也可以與SpringCloud Gateway整合,訪問網關地址就可以查看所有的微服務API文檔。   首先在micro-service-new-gateway工程中加入swagger依賴。 創建一個過濾器SwaggerHeaderFilter,在Header中加入basePath。   package com.lpplpp.gateway.app.filter; import c
相關文章
相關標籤/搜索