diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml index 7931f43a5f..3aabf04d70 100644 --- a/spring-framework-reference/src/validation.xml +++ b/spring-framework-reference/src/validation.xml @@ -1599,10 +1599,14 @@ public void testDefaultSpelMappingBehavior() { Registering Explicit Mappings When default mapping rules are not sufficient, explicit mapping rules can be registered by obtaining a MapperBuilder and using it to construct a Mapper. - Explicit mapping rules always override the default. + Explicit mapping rules always override the default: builder = MappingFactory.mappingBuilder(PersonDto.class, Person.class)]]> +MappperBuilder builder = MappingFactory.mappingBuilder(PersonDto.class, Person.class) +builder.addMapping(...); +builder.addMapping(...); +Mapper mapper = builder.getMapper(); +]]>
Mapping between two fields with different names