| | |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | /** |
| | | * SWAGGER2配置,访问地址:http://xxxx:8090/scc/swagger-ui.html |
| | | * SWAGGER2配置,访问地址:http://xxxx:8090/scc/swagger-ui.html |
| | | * |
| | | * @author kevin |
| | | */ |
| | | @Configuration |
| | | @EnableSwagger2 |
| | | //@Profile("dev")//测试环境配置,正式环境不配置 |
| | | //@Profile("dev")//测试环境配置,正式环境不配置 |
| | | public class Swagger2 { |
| | | |
| | | @Autowired |
| | |
| | | |
| | | private ApiInfo apiInfo() { |
| | | return new ApiInfoBuilder() |
| | | .title("智慧蓝项目接口 restful api") |
| | | .description("本API基于Swagger 2.9.2版本构建") |
| | | .title("智慧蓝项目接口 restful api") |
| | | .description("本API基于Swagger 2.9.2版本构建") |
| | | .termsOfServiceUrl(config.getDomain()) |
| | | .contact(new Contact("kevin","","")) |
| | | .version("1.0") |