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
相关文章
相关标签/搜索