![JAR search and dependency download from the Maven repository](/logo.png)
top.tangyh.basic.swagger2.SwaggerWebMvcConfigurer Maven / Gradle / Ivy
package top.tangyh.basic.swagger2;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Swagger 配置
*
* @author zuihou
* @date 2020年04月29日14:32:04
*/
public class SwaggerWebMvcConfigurer implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars" +
"*")
.addResourceLocations("classpath:/META-INF/resources/webjars/");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy