ssm分页查询出现错误:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'shopCondition' in 'class com.lemon.entity.Shop'
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '
解决方法:
在dao层 添加@Param("变量名")
这是我的方法:
int queryShopCount(@Param("shopCondition")Shop shopCondition);
@Param指定唯一的标识,根据这个唯一标识才能取到正确的值
博客指出SSM分页查询出现错误,报错显示在对应类中没有指定属性的getter方法。解决方法是在dao层添加@Param(\变量名\),通过@Param指定唯一标识来获取正确的值,如示例方法queryShopCount。
9577

被折叠的 条评论
为什么被折叠?



