This commit is contained in:
xiangwb
2017-11-20 16:10:42 +08:00
parent 00d6941eed
commit 27cbdcd8b5
3 changed files with 3 additions and 5 deletions
@@ -50,8 +50,8 @@ public class DispatcherServletConfig extends WebMvcConfigurerAdapter {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
//swagger
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
// registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
// registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
//
super.addResourceHandlers(registry);
}