在这里插入代码片在项目中集成swagger但是网页无法打开
swagger网页能打开,但是没有模块儿功能
1.检查依赖是否完好
//我这里没有加版本,可以根据自己的jdk版本添加对应的版本
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
2.第二步检查是否添加了@ComponentScan注解扫描
@ComponentScan({
"com.woniuxy.users"
})
我这里添加完扫描后,swagger就好了