ResourceMvcConfig
This commit is contained in:
@@ -31,7 +31,6 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
||||
|
||||
@@ -51,30 +50,6 @@ public class MaxKeyOpenApiMvcConfig implements WebMvcConfigurer {
|
||||
|
||||
@Autowired
|
||||
RestApiPermissionAdapter restApiPermissionAdapter;
|
||||
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
logger.debug("add Resource Handlers");
|
||||
|
||||
logger.debug("add statics");
|
||||
registry.addResourceHandler("/static/**")
|
||||
.addResourceLocations("classpath:/static/");
|
||||
logger.debug("add templates");
|
||||
registry.addResourceHandler("/templates/**")
|
||||
.addResourceLocations("classpath:/templates/");
|
||||
|
||||
logger.debug("add swagger");
|
||||
registry.addResourceHandler("swagger-ui.html")
|
||||
.addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("/webjars/**")
|
||||
.addResourceLocations("classpath:/META-INF/resources/webjars/");
|
||||
|
||||
logger.debug("add knife4j");
|
||||
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
|
||||
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
|
||||
|
||||
logger.debug("add Resource Handler finished .");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
|
||||
@@ -5,6 +5,7 @@ org.dromara.maxkey.autoconfigure.JwtAuthnAutoConfiguration
|
||||
org.dromara.maxkey.autoconfigure.RedisAutoConfiguration
|
||||
org.dromara.maxkey.autoconfigure.AuthnProviderAutoConfiguration
|
||||
org.dromara.maxkey.autoconfigure.OneTimePasswordAutoConfiguration
|
||||
org.dromara.maxkey.autoconfigure.ResourceMvcConfig
|
||||
org.dromara.maxkey.autoconfigure.SmsAutoConfiguration
|
||||
org.dromara.maxkey.autoconfigure.SessionAutoConfiguration
|
||||
org.dromara.maxkey.autoconfigure.TokenAutoConfiguration
|
||||
|
||||
Reference in New Issue
Block a user