HTTP Status 500

来源:互联网 发布:象棋拆棋软件 编辑:程序博客网 时间:2024/06/05 05:39

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 = "parentid") Integerparentid);

原创粉丝点击