Mybatis: Could not resolve type alias 'xxxMap'

匿名 (未验证) 提交于 2019-12-03 00:22:01

部署的时候报错: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>




标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!