| | |
| | | import springfox.documentation.spring.web.plugins.Docket; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | //@Configuration |
| | | //@EnableSwagger2 |
| | | @Configuration |
| | | @EnableSwagger2 |
| | | public class Swagger2Conf extends WebMvcConfigurationSupport { |
| | | |
| | | @Bean |
| | |
| | | registry.addResourceHandler("/**").addResourceLocations( |
| | | "classpath:/static/"); |
| | | registry.addResourceHandler("swagger-ui.html").addResourceLocations( |
| | | "classpath:/META-INF/resources/public/"); |
| | | "classpath:/META-INF/resources/"); |
| | | registry.addResourceHandler("/webjars/**").addResourceLocations( |
| | | "classpath:/META-INF/resources/webjars/"); |
| | | super.addResourceHandlers(registry); |