Package | Description |
---|---|
org.springframework.beans |
This package contains interfaces and classes for manipulating Java beans.
|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
org.springframework.web.servlet.mvc.support |
Support package for MVC controllers.
|
Modifier and Type | Class and Description |
---|---|
class |
ConversionNotSupportedException
Exception thrown when no suitable editor or converter can be found for a bean property.
|
Modifier and Type | Method and Description |
---|---|
Object |
BeanWrapperImpl.convertForProperty(Object value,
String propertyName)
Convert the given value for the specified property to the latter's type.
|
protected Object |
AbstractNestablePropertyAccessor.convertForProperty(String propertyName,
Object oldValue,
Object newValue,
TypeDescriptor td) |
<T> T |
TypeConverter.convertIfNecessary(Object value,
Class<T> requiredType)
Convert the value to the required type (if necessary from a String).
|
<T> T |
TypeConverterSupport.convertIfNecessary(Object value,
Class<T> requiredType) |
<T> T |
TypeConverter.convertIfNecessary(Object value,
Class<T> requiredType,
Field field)
Convert the value to the required type (if necessary from a String).
|
<T> T |
TypeConverterSupport.convertIfNecessary(Object value,
Class<T> requiredType,
Field field) |
<T> T |
TypeConverter.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam)
Convert the value to the required type (if necessary from a String).
|
<T> T |
TypeConverterSupport.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
default <T> T |
TypeConverter.convertIfNecessary(Object value,
Class<T> requiredType,
TypeDescriptor typeDescriptor)
Convert the value to the required type (if necessary from a String).
|
<T> T |
TypeConverterSupport.convertIfNecessary(Object value,
Class<T> requiredType,
TypeDescriptor typeDescriptor) |
Modifier and Type | Method and Description |
---|---|
<T> T |
DataBinder.convertIfNecessary(Object value,
Class<T> requiredType) |
<T> T |
DataBinder.convertIfNecessary(Object value,
Class<T> requiredType,
Field field) |
<T> T |
DataBinder.convertIfNecessary(Object value,
Class<T> requiredType,
MethodParameter methodParam) |
<T> T |
DataBinder.convertIfNecessary(Object value,
Class<T> requiredType,
TypeDescriptor typeDescriptor) |
Modifier and Type | Class and Description |
---|---|
class |
MethodArgumentConversionNotSupportedException
A ConversionNotSupportedException raised while resolving a method argument.
|
class |
MethodArgumentTypeMismatchException
A TypeMismatchException raised while resolving a controller method argument.
|
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleTypeMismatch(TypeMismatchException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for TypeMismatchException.
|
Modifier and Type | Method and Description |
---|---|
protected ModelAndView |
DefaultHandlerExceptionResolver.handleTypeMismatch(TypeMismatchException ex,
HttpServletRequest request,
HttpServletResponse response,
Object handler)
Handle the case when a
WebDataBinder conversion error occurs. |