springboot集成swagger2页面出现swagger-resources404
问题描述
访问/doc.html出现页面,但是没有接口文档,查看页面元素发现问题:
/swagger-resources 404
/swagger-resources/configuration/ui 404
问题查找
我是springboot项目,分模块,common包,api包,manager包,swagger配置放到common包下,启动类在manager下,manager引用了common包
1.查看配置是否缺失,看着都有
2.查看版本号,看着没啥问题
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<version>1.9.6</version>
</dependency>
<dependency>