JSR-303 errors not detected natively by using the @Valid annotation
How come the @Valid annotation does not catch my JSR-303 annotations natively, but do catch them using the following method: WebConfig.java @Bean public ResourceBundleMessageSource messageSource() { ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource(); String[] strBaseNames = { "resources.messages.layout.LayoutResources", "resources.messages.layout.MenuResources", "resources.messages.global.GlobalResources" }; messageSource.setUseCodeAsDefaultMessage(true); messageSource.setDefaultEncoding("UTF-8"); messageSource.setBasenames(strBaseNames); return messageSource; }