Mybatis: Could not resolve type alias 'xxxMap'

部署的时候报错:Could not resolve type alias 'xxxMap'

这是因为你的mapper.xml文件中的查询语句中的resultType没有设置错了。改成resultMap="xxxMap"即可

	<select id="getSecurityGroupRuleBySGId" resultType = "xxxMap" parameterType="SecurityGroup">
	    select * 
	    from security_group_rule
	    where security_group_id = #{id}
	</select>




猜你喜欢

转载自blog.csdn.net/u013276277/article/details/80535256
今日推荐