org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'm' in 'class com.me.assistant.entity.SysRoleEntity'
时间: 2023-12-30 07:07:37 浏览: 279
This exception occurs when MyBatis is unable to find a getter method for a property named 'm' in the class 'com.me.assistant.entity.SysRoleEntity'.
To resolve this issue, you need to make sure that a getter method exists for the 'm' property in the 'SysRoleEntity' class. The getter method should follow the JavaBean naming conventions, which means it should be named 'getM()' or 'isM()' depending on the data type of the property.
If you have already defined a getter method for the 'm' property, make sure that it is accessible and has the correct signature. You can also check if there are any typos in the property name or if the property is defined with a different name in the class.
Once you have corrected the issue, rebuild your application and try running it again. The exception should no longer occur, and MyBatis should be able to access the 'm' property using the getter method.
阅读全文