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);