解决Mybatis遇到这种org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis

Mybatis遇到这种org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘propertyInfoDto’ in 'class com.hikvision.aidp.dto.PropertyInfoDto’错误

在这里插入图片描述

解决方法

错误写法

Integer getCount(PropertyInfoDto propertyInfoDto);

正确写法

Integer getCount(@Param("propertyInfoDto")PropertyInfoDto propertyInfoDto);

猜你喜欢

转载自blog.csdn.net/qq_38530648/article/details/109001702
今日推荐