严重: Servlet.service() for servlet [spring] in context with path [] threw exception
严重:Servlet.service()forservlet[spring]incontextwithpath[]threwexception[Requestproces...
严重: Servlet.service() for servlet [spring] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'oneCardSolutionUser' on field 'unit_id': rejected value []; codes [typeMismatch.oneCardSolutionUser.unit_id,typeMismatch.unit_id,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [oneCardSolutionUser.unit_id,unit_id]; arguments []; default message [unit_id]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'unit_id'; nested exception is java.lang.NumberFormatException: For input string: ""]] with root cause
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'oneCardSolutionUser' on field 'unit_id': rejected value []; codes [typeMismatch.oneCardSolutionUser.unit_id,typeMismatch.unit_id,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [oneCardSolutionUser.unit_id,unit_id]; arguments []; default message [unit_id]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'unit_id'; nested exception is java.lang.NumberFormatException
在同一个jsp页面,登录个人用户,首页不报错,链接也报错。求大神指导 展开
Field error in object 'oneCardSolutionUser' on field 'unit_id': rejected value []; codes [typeMismatch.oneCardSolutionUser.unit_id,typeMismatch.unit_id,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [oneCardSolutionUser.unit_id,unit_id]; arguments []; default message [unit_id]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'unit_id'; nested exception is java.lang.NumberFormatException: For input string: ""]] with root cause
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'oneCardSolutionUser' on field 'unit_id': rejected value []; codes [typeMismatch.oneCardSolutionUser.unit_id,typeMismatch.unit_id,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [oneCardSolutionUser.unit_id,unit_id]; arguments []; default message [unit_id]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'unit_id'; nested exception is java.lang.NumberFormatException
在同一个jsp页面,登录个人用户,首页不报错,链接也报错。求大神指导 展开
2个回答
2015-09-29
展开全部
Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'unit_id'; nested exception is java.lang.NumberFormatException
定义是int,传递了 String的值
定义是int,传递了 String的值
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'unit_id
这句说了错误的原因,unit_id 需要个int类型的,结果给了个字符串。
这句说了错误的原因,unit_id 需要个int类型的,结果给了个字符串。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询