xiaoymin / blog-comments

blog-comments
0 stars 0 forks source link

基于Spring Cloud Zuul方式 | swagger-bootstrap-ui #134

Open xiaoymin opened 5 years ago

xiaoymin commented 5 years ago

https://doc.xiaominfo.com/solution/ui-front-zuul.html

swagger-bootstrap-ui 指南

liong911 commented 4 years ago

zuul网关服务除了增加SwaggerResource配置外,SwaggerConfiguration配置也需要加上,不然进入doc.html时,会报异常,加载不出其他微服务

sunpauliz commented 4 years ago

2.0.3的Knife4jController中是从 documentationCache 获取doc,而documentationCache 又是按包路径扫描得来的,无法从SwaggerResourcesProvider 获取doc,是否应该在SwaggerResourcesProvider 注册分组资源时,将url对应的json加载到documentationCache 中?