@Configuration
public class StaticResourceConfig
extends java.lang.Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
构造器和说明 |
---|
StaticResourceConfig() |
限定符和类型 | 方法和说明 |
---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
org.springframework.web.servlet.i18n.LocaleChangeInterceptor |
localeChangeInterceptor() |
org.springframework.web.servlet.LocaleResolver |
localeResolver() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
@Bean public org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor()