ssm中报错: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type a

Posted Coding With you.....

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssm中报错: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type a相关的知识,希望对你有一定的参考价值。

 错误:Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap'.

原因是是一个集合,resultType是一种类型,需要把报错的mapper.xml文件中的resultType改为resultMap,如下图:

修改前:
<select id="findrwskList" parameterType="String" resultType="BaseResultMap">
		select * from bookdb where book_category = (select category_id from
		category where category_name = #category_name)
	</select>
修改后:
<select id="findrwskList" parameterType="String" resultMap="BaseResultMap">
		select * from bookdb where book_category = (select category_id from
		category where category_name = #category_name)
	</select>

 

以上是关于ssm中报错: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type a的主要内容,如果未能解决你的问题,请参考以下文章

IDEA中报错“cannot resolve symbol toDF”,但编译正确可以运行

如何解决LodRunner中报错关于Error -10489

Android的AndroidManifest.xml中报错!如何解决?

windows svn post-commit 报错解决 error resolving case

解决vue中报错 Duplicate keys detected:‘1‘. This may cause an update error.

解决vue中报错 Duplicate keys detected:‘1‘. This may cause an update error.