@Configuration
public class ValidatorConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 构造器和说明 |
|---|
ValidatorConfiguration(org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration messageSourceAutoConfiguration) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.validation.Validator |
getValidator()
配置 HibernateValidator 国际化
|
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolverpublic ValidatorConfiguration(org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration messageSourceAutoConfiguration)
public org.springframework.validation.Validator getValidator()
getValidator 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurergetValidator 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter