类 LocaleConfiguration

  • 所有已实现的接口:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration
    public class LocaleConfiguration
    extends Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)  
      org.springframework.web.servlet.LocaleResolver localeResolver()  
      • 从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • 构造器详细资料

      • LocaleConfiguration

        public LocaleConfiguration()
    • 方法详细资料

      • localeResolver

        @Bean(name="localeResolver")
        public org.springframework.web.servlet.LocaleResolver localeResolver()
      • addInterceptors

        public void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
        指定者:
        addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer