|
|
@@ -29,20 +29,20 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|
|
registry.addResourceHandler("/files/**").addResourceLocations("file:" + localPath);
|
|
|
}
|
|
|
|
|
|
- @Bean
|
|
|
- public Docket createApi() {
|
|
|
- return new Docket(DocumentationType.SWAGGER_2)
|
|
|
- .apiInfo(new ApiInfoBuilder()
|
|
|
- .title("接口文档")
|
|
|
- .version("1.0.0")
|
|
|
- .termsOfServiceUrl("#")
|
|
|
- .description("接口文档")
|
|
|
- .build())
|
|
|
- .select()
|
|
|
- .apis(RequestHandlerSelectors.basePackage("com.izouma.jmrh.web"))
|
|
|
- .paths(PathSelectors.any())
|
|
|
- .build();
|
|
|
- }
|
|
|
+// @Bean
|
|
|
+// public Docket createApi() {
|
|
|
+// return new Docket(DocumentationType.SWAGGER_2)
|
|
|
+// .apiInfo(new ApiInfoBuilder()
|
|
|
+// .title("接口文档")
|
|
|
+// .version("1.0.0")
|
|
|
+// .termsOfServiceUrl("#")
|
|
|
+// .description("接口文档")
|
|
|
+// .build())
|
|
|
+// .select()
|
|
|
+// .apis(RequestHandlerSelectors.basePackage("com.izouma.jmrh.web"))
|
|
|
+// .paths(PathSelectors.any())
|
|
|
+// .build();
|
|
|
+// }
|
|
|
|
|
|
// @Bean
|
|
|
// public MappingJackson2HttpMessageConverter getMappingJackson2HttpMessageConverter() {
|