@@ -343,7 +343,7 @@ public class BeanPropertyRowMapper<T> implements RowMapper<T> {
|
||||
bw.setPropertyValue(pd.getName(), value);
|
||||
}
|
||||
catch (TypeMismatchException ex) {
|
||||
if (value == null && this.primitivesDefaultedForNullValue) {
|
||||
if (value == null && isPrimitivesDefaultedForNullValue()) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
String propertyType = ClassUtils.getQualifiedName(pd.getPropertyType());
|
||||
logger.debug(String.format(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -191,8 +191,7 @@ public class PayloadMethodArgumentResolver implements HandlerMethodArgumentResol
|
||||
/**
|
||||
* Validate the payload if applicable.
|
||||
* <p>The default implementation checks for {@code @javax.validation.Valid},
|
||||
* Spring's {@link Validated},
|
||||
* and custom annotations whose name starts with "Valid".
|
||||
* Spring's {@link Validated}, and custom annotations whose name starts with "Valid".
|
||||
* @param message the currently processed message
|
||||
* @param parameter the method parameter
|
||||
* @param target the target payload object
|
||||
|
||||
Reference in New Issue
Block a user