Commit fbc86c49 authored by liqin's avatar liqin 💬

bug fixed

parent f501e27b
...@@ -25,11 +25,11 @@ import static com.google.common.collect.Lists.newArrayList; ...@@ -25,11 +25,11 @@ import static com.google.common.collect.Lists.newArrayList;
public class SwaggerConfig { public class SwaggerConfig {
@Bean @Bean
public Docket petApi() { public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2) return new Docket(DocumentationType.SWAGGER_2)
.pathMapping("/") .pathMapping("/")
.select() .select()
.apis(RequestHandlerSelectors.basePackage("cn.wisenergy.datastation.web.api")) .apis(RequestHandlerSelectors.basePackage("cn.wisenergy.chnmuseum.party.web.controller"))
.paths(PathSelectors.any()) .paths(PathSelectors.any())
.build() .build()
//.securitySchemes(newArrayList(apiKey())) //.securitySchemes(newArrayList(apiKey()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment