1、访问地址http://localhost:8080/swagger-ui.html
2、启动类中加上@EnableOpenApi注解创建配置类(同下)创建防止被拦截类(同下)访问地址:http://localhost:8080/swagger-ui/index.html
3、创建防止被拦截类
4、导入依赖
5、启动类中加上@EnableSwagger2注解创建配置类
6、导入依赖
1、访问地址http://localhost:8080/swagger-ui.html
2、启动类中加上@EnableOpenApi注解创建配置类(同下)创建防止被拦截类(同下)访问地址:http://localhost:8080/swagger-ui/index.html
3、创建防止被拦截类
4、导入依赖
5、启动类中加上@EnableSwagger2注解创建配置类
6、导入依赖