Git官方地址:https://github.com/SpringForAll/spring-boot-starter-swagger

Demo:https://github.com/dyc87112/swagger-starter-demo

demo下载到本地使用idea打开,默认8080端口,启动后访问:http://localhost:8080/swagger-ui.html

 在pom.xml文件里引入

springboot项目中配置swagger-ui

springboot项目中配置swagger-ui

 

 

在springboot启动类里面加@EnableSwagger2Doc注解

springboot项目中配置swagger-ui

 

在application.properties 配置

springboot项目中配置swagger-ui

 

相关文章:

  • 2021-05-27
  • 2021-06-04
  • 2022-01-13
  • 2021-09-12
  • 2021-04-15
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案