cn.msuno.swagger.spring.boot.autoconfigure.configuration.SecurityConfiguration Maven / Gradle / Ivy
package cn.msuno.swagger.spring.boot.autoconfigure.configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Component
public class SecurityConfiguration 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 - 2024 Weber Informatics LLC | Privacy Policy