spring-boot-starter-swagger via springbox
<dependency>
<groupId>xyz.lxie</groupId>
<artifactId>spring-boot-starter-swagger</artifactId>
<version>${starter-swagger.version}</version>
</dependency>
最新版本查询
# application.properties
swagger.ui.xxx=xyz
...
配置参数见: SwaggerProperties.java
线上环境关闭swagger ui, 可以配置参数 swagger.ui.enable=false