swagger2
viaco2love
这个作者很懒,什么都没留下…
展开
-
‘springfox.documentation.spring.web.plugins.Docket‘ that could not be found
通过我的分析,是swagger 被关闭了。而关闭的原因是在Swagger2Config上使用了@Profile注解标识. 而当前环境prod 没有在里面 所以改成 @Autowired(required=false) Docket docket; 或者修改 spring: profiles: active: local 或者修改Swagger2Config @Profile注解标识或者修改@Component@Profile({"local", "dev", "test"}原创 2022-03-31 14:56:28 · 4144 阅读 · 0 评论 -
1. knife4j 2.x 增强功能 (knife4j-spring-boot-demo)
首先从swagger-bootstrap-ui-demo: knife4j 以及swagger-bootstrap-ui 集成框架示例项目找到knife4j-spring-boot-demo运行看看效果然后把相关的内容复制到自己项目效果就是没有效果直接给出结论:少复制了com.swagger.bootstrap.ui.demo.config.SwaggerConfiguration分析过程如下debug 看看怀疑参数没有传到页面复制k..原创 2021-10-28 14:19:37 · 793 阅读 · 0 评论