|
@@ -1,5 +1,6 @@
|
|
|
package com.jpsoft.picc.config;
|
|
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -27,8 +28,8 @@ public class SwaggerConfig {
|
|
|
return new Docket(DocumentationType.SWAGGER_2)
|
|
|
.apiInfo(apiInfo())
|
|
|
.select()
|
|
|
-// .apis(RequestHandlerSelectors.withClassAnnotation(RestController.class))
|
|
|
- .apis(RequestHandlerSelectors.basePackage("com.jpsoft.picc.modules.*.controller"))
|
|
|
+ .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
|
|
|
+ //.apis(RequestHandlerSelectors.withClassAnnotation(Controller.class))
|
|
|
.paths(PathSelectors.any())
|
|
|
.build()
|
|
|
//添加登录认证
|