派生自 projectDept/qhighschool

EricsHu
2023-09-01 19e6057d3797b6fd6770ed5a98ddaef0b86a4c47
src/main/java/com/qxueyou/scc/config/Swagger2.java
@@ -14,13 +14,13 @@
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
@@ -38,8 +38,8 @@
    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")