### Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'list' in 'class com.situ.mybatis.entity.Department'
导致原因:
此类问题从根本上来说就是在xml映射文件中,实体类属性的名字与映射文件中property的值对应不起来,导致反射的时候找不到对应的get set方法。
第一种:映射文件中的property名写错。比如:pojo实体类属性为id,在映射时错写为 property="is"
第二种:你的pojo实体类中,根本就没有这个属性名。