您的位置:首页 > 理论基础 > 计算机网络

HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemExc

2017-09-27 14:38 645 查看


HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'parentid' in 'class java.lang.Integer'

There is no getter for property named 'parentid' in 'class java.lang.Integer'

解决方法1:

将参数名(上面的例子为’parentid’)替换为”_parameter” 

解决方法2:

Dao层接口方法的参数声明加上@Param("parentid")

如:List<PmClassify> getPmClassifyList(@Param(value = "[b]parentid
") Integer
parentid);
[/b]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐