类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.web.servlet.i18n.LocaleChangeInterceptororg.springframework.web.servlet.LocaleResolverorg.springframework.context.MessageSourceorg.springframework.validation.beanvalidation.LocalValidatorFactoryBeanvalidator(org.springframework.context.MessageSource messageSource)
-
构造器详细资料
-
ValidationAutoConfiguration
-
-
方法详细资料
-
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()
-