ssm框架 将数据从数据库显示在jsp上报错

HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.airtechs.entity.order with invalid types (String,String,String,String,String,String,String,String,String,String,String,String,String,int,int) or values (ATS-1603010,辽宁海润环保,695000,徐建平,阿斯达,1111,222,333,444,555,666,777,null,null,null). Cause: java.lang.IllegalArgumentException

2个回答

Error instantiating class com.airtechs.entity.order with invalid types (String,String,String,String,String,String,String,String,String,String,String,String,String,int,int) or values (ATS-1603010,辽宁海润环保,695000,徐建平,阿斯达,1111,222,333,444,555,666,777,null,null,null)

这段异常描述说明是实例化order类错误,报无效类型。你的类型是 (String,String,String,String,String,String,String,String,String,String,String,String,String,int,int)接收,但是你传的值是(ATS-1603010,辽宁海润环保,695000,徐建平,阿斯达,1111,222,333,444,555,666,777,null,null,null),你自己看看这类型是不是不匹配。int类型怎么能接收到null,明显有问题了。

反射实体类异常,类型错误,最后两个参数int 尝试换成 Integer,int非对象类型!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐