类 ValidationAutoConfiguration

java.lang.Object
tech.mhuang.pacebox.springboot.autoconfiguration.validate.ValidationAutoConfiguration

@Configuration @EnableConfigurationProperties(ValidationProperties.class) @ConditionalOnProperty(prefix="pacebox.validation", name="enable", havingValue="true") public class ValidationAutoConfiguration extends Object
验证自动注册
从以下版本开始:
1.0.0
作者:
mhuang
  • 构造器详细资料

  • 方法详细资料

    • messageSource

      @Bean(name="messageSource") public org.springframework.context.MessageSource messageSource()
    • validator

      @Bean public org.springframework.validation.beanvalidation.LocalValidatorFactoryBean validator(org.springframework.context.MessageSource messageSource)
    • localeResolver

      @Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
    • localeChangeInterceptor

      @Bean public org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor()