Commit 64d4746b by 阳浪

SwaggerConfig

parent 2a7704a8
......@@ -31,10 +31,10 @@ public class SwaggerConfig extends WebMvcConfigurerAdapter{
*/
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
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/");
// registry.addResourceHandler("swagger-ui.html")
// .addResourceLocations("classpath:/META-INF/resources/");
}
......
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