类的使用
org.springframework.beans.TypeMismatchException
使用TypeMismatchException的程序包 程序包 说明 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 theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.support Support package for MVC controllers.org.springframework.beans中TypeMismatchException的使用
org.springframework.beans中TypeMismatchException的子类 修饰符和类型 类 说明 class
ConversionNotSupportedException
Exception thrown when no suitable editor or converter can be found for a bean property.抛出TypeMismatchException的org.springframework.beans中的方法 修饰符和类型 方法 说明 protected Object
AbstractNestablePropertyAccessor. convertForProperty(String propertyName, Object oldValue, Object newValue, TypeDescriptor td)
Object
BeanWrapperImpl. convertForProperty(Object value, String propertyName)
Convert the given value for the specified property to the latter's type.<T> T
TypeConverter. convertIfNecessary(Object value, Class<T> requiredType)
Convert the value to the required type (if necessary from a String).<T> T
TypeConverter. convertIfNecessary(Object value, Class<T> requiredType, Field field)
Convert the value to the required type (if necessary from a String).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
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)
<T> T
TypeConverterSupport. convertIfNecessary(Object value, Class<T> requiredType, Field field)
<T> T
TypeConverterSupport. convertIfNecessary(Object value, Class<T> requiredType, TypeDescriptor typeDescriptor)
<T> T
TypeConverterSupport. convertIfNecessary(Object value, Class<T> requiredType, MethodParameter methodParam)
org.springframework.validation中TypeMismatchException的使用
抛出TypeMismatchException的org.springframework.validation中的方法 修饰符和类型 方法 说明 <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, TypeDescriptor typeDescriptor)
<T> T
DataBinder. convertIfNecessary(Object value, Class<T> requiredType, MethodParameter methodParam)
org.springframework.web.method.annotation中TypeMismatchException的使用
org.springframework.web.method.annotation中TypeMismatchException的子类 修饰符和类型 类 说明 class
MethodArgumentConversionNotSupportedException
A ConversionNotSupportedException raised while resolving a method argument.class
MethodArgumentTypeMismatchException
A TypeMismatchException raised while resolving a controller method argument.org.springframework.web.servlet.mvc.method.annotation中TypeMismatchException的使用
参数类型为TypeMismatchException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for TypeMismatchException.org.springframework.web.servlet.mvc.support中TypeMismatchException的使用
参数类型为TypeMismatchException的org.springframework.web.servlet.mvc.support中的方法 修饰符和类型 方法 说明 protected ModelAndView
DefaultHandlerExceptionResolver. handleTypeMismatch(TypeMismatchException ex, HttpServletRequest request, HttpServletResponse response, Object handler)
Handle the case when aWebDataBinder
conversion error occurs.