|
@@ -1,29 +1,27 @@
|
|
|
package org.jeecg.config;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
+import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.modules.shiro.vo.DefContants;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
-
|
|
|
-import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
|
|
|
-
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import springfox.documentation.service.Parameter;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
import springfox.documentation.builders.ApiInfoBuilder;
|
|
|
import springfox.documentation.builders.ParameterBuilder;
|
|
|
import springfox.documentation.builders.PathSelectors;
|
|
|
import springfox.documentation.builders.RequestHandlerSelectors;
|
|
|
import springfox.documentation.schema.ModelRef;
|
|
|
import springfox.documentation.service.ApiInfo;
|
|
|
+import springfox.documentation.service.Parameter;
|
|
|
import springfox.documentation.spi.DocumentationType;
|
|
|
import springfox.documentation.spring.web.plugins.Docket;
|
|
|
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @Author scott
|
|
|
*/
|
|
@@ -36,7 +34,7 @@ public class Swagger2Config implements WebMvcConfigurer {
|
|
|
/**
|
|
|
*
|
|
|
* 显示swagger-ui.html文档展示页,还必须注入swagger资源:
|
|
|
- *
|
|
|
+ *
|
|
|
* @param registry
|
|
|
*/
|
|
|
@Override
|
|
@@ -85,9 +83,9 @@ public class Swagger2Config implements WebMvcConfigurer {
|
|
|
private ApiInfo apiInfo() {
|
|
|
return new ApiInfoBuilder()
|
|
|
// //大标题
|
|
|
- .title("Jeecg-Boot 后台服务API接口文档")
|
|
|
+ .title("汇创助手后台服务API接口文档")
|
|
|
// 版本号
|
|
|
- .version("1.0")
|
|
|
+ .version("2.0.2")
|
|
|
// .termsOfServiceUrl("NO terms of service")
|
|
|
// 描述
|
|
|
.description("restful 风格接口")
|