There is no setter for property named 'dDepartments' in 'class com.entity.Consulation'!!
出现这个我的错不是其他网友说的少写了一个字母,也不是对应的类名错误,而是在我主键的那个表多写了一个外建那个表里的一个字段!!删掉立马就好了,jsp页面就能调用出来东西了!写在主键所在的mapper.xml里!
<resultMap id="BaseResultMap" type="com.entity.Consulation" > <id column="consuId" property="consuId" jdbcType="INTEGER" /> <result column="docId" property="docId" jdbcType="VARCHAR" /> <result column="pIdentity" property="pIdentity" jdbcType="VARCHAR" /> <result column="pName" property="pName" jdbcType="VARCHAR" /> <result column="consuTitle" property="consuTitle" jdbcType="VARCHAR" /> <result column="consuContent" proper