严重: Servlet.service() for servlet [SpringMVC] in context with path [/hnnv_education] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘Teacher’ of ‘class hnnv.edu.entity.Course’ with value ‘hnnv.edu.entity.Teacher@120ace5b’ Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named ‘Teacher’ in ‘class hnnv.edu.entity.Course’] with root cause
解决办法:
一对一查询时association中的property属性要小写
org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'Teacher' in
最新推荐文章于 2024-06-19 09:29:01 发布