BUG(3) : Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer';

Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "on"


表单提交时,有个字段类型为字符串(不可转int的字符串),后台用的Integer接收,把Integer换成String即可



END

 

猜你喜欢

转载自blog.csdn.net/lxinccode/article/details/80908433