实体类中的主键属性为啥一定要是ID而不能是id呢?我看老师也是id啊
报错。我在实体类中id属性设置为 id就会报错:Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'ID' of 'class com.cml.Bean.Message' with value '2' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'ID' in 'class com.cml.Bean.Message'
### The error may exist in com/cml/config/sqlxml/MessageDao.xml
改成ID又不会报错了?