nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'enterpriseId' in 'class java.lang.String'

错误信息:

nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'enterpriseId' in 'class java.lang.String'

解决办法

xml里面,标签 parameterType 的值有错误。

或者在DAO层的方法参数前加上注解 @Param("")