From 2e12907fe41cc07dc0c705000cd5a83fcaf71866 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 12 Nov 2009 07:28:24 +0000 Subject: [PATCH] polish --- spring-framework-reference/src/validation.xml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml index 94133b97b9e..b6ff11256c8 100644 --- a/spring-framework-reference/src/validation.xml +++ b/spring-framework-reference/src/validation.xml @@ -1424,13 +1424,12 @@ public class MyController {
Configuring a JSR-303 Validator for use by Spring MVC - With JSR-303, the default javax.validation.Validator implementation is typically global. - A single instance typically validates all application objects that declare validation constraints. - To configure such a general purpose Validator for use by Spring MVC, simply add a JSR-303 Provider to your classpath. - Spring MVC will detect it and automatically configure JSR-303 for use across all Controllers. + With JSR-303, a single javax.validation.Validator instance typically validates all model objects that declare validation constraints. + To configure a JSR-303-backed Validator with Spring MVC, simply add a JSR-303 Provider, such as Hibernate Validator, to your classpath. + Spring MVC will detect it and automatically enable JSR-303 support across all Controllers. - The Spring MVC configuration required to configure JSR-303 support is shown below: + The Spring MVC configuration required to enable JSR-303 support is shown below: @@ -1443,7 +1442,7 @@ public class MyController { http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> - +