@Configuration @EnableConfigurationProperties(value=ValidationProperties.class) @ConditionalOnProperty(prefix="pacebox.validation", name="enable", havingValue="true") public class ValidationAutoConfiguration extends Object
| 构造器和说明 |
|---|
ValidationAutoConfiguration(ValidationProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.servlet.i18n.LocaleChangeInterceptor |
localeChangeInterceptor() |
org.springframework.web.servlet.LocaleResolver |
localeResolver() |
org.springframework.context.MessageSource |
messageSource() |
org.springframework.validation.beanvalidation.LocalValidatorFactoryBean |
validator(org.springframework.context.MessageSource messageSource) |
public ValidationAutoConfiguration(ValidationProperties properties)
@Bean(name="messageSource") public org.springframework.context.MessageSource messageSource()
@Bean public org.springframework.validation.beanvalidation.LocalValidatorFactoryBean validator(org.springframework.context.MessageSource messageSource)
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
@Bean public org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor()
Copyright © 2020. All rights reserved.