Shared DefaultConversionService instance for simple fallback purposes

Issue: SPR-14948
(cherry picked from commit 80931b2)
This commit is contained in:
Juergen Hoeller
2016-11-24 15:29:17 +01:00
parent 5ca10b1d67
commit a7ba63d425
7 changed files with 77 additions and 17 deletions

View File

@@ -88,7 +88,7 @@ public class BeanPropertyRowMapper<T> implements RowMapper<T> {
private boolean primitivesDefaultedForNullValue = false;
/** ConversionService for binding JDBC values to bean properties */
private ConversionService conversionService = new DefaultConversionService();
private ConversionService conversionService = DefaultConversionService.getSharedInstance();
/** Map of the fields we provide mapping for */
private Map<String, PropertyDescriptor> mappedFields;