Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap'
2017-05-11 17:32
921 查看
mybatis 新增了一个mapper文件,结果一直出现类找不到。Caused by: org.apache.ibatis.type.TypeException: Could not resolve type
alias 'BaseResultMap'。
最后终于找出问题所在,记录一下。
查看你的select查询语句中,注意查看resultType,你可能引用的是BaseResultMap这个类型。
找到那个resultType了么,就是它惹的祸,这里把resultType改为resultMap就OK啦,重启tomcat,问题解决。
alias 'BaseResultMap'。
最后终于找出问题所在,记录一下。
查看你的select查询语句中,注意查看resultType,你可能引用的是BaseResultMap这个类型。
找到那个resultType了么,就是它惹的祸,这里把resultType改为resultMap就OK啦,重启tomcat,问题解决。
相关文章推荐
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap‘
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap'
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap'
- Mybatis使用之 Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias‘User’
- org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxxx'异常
- org.apache.ibatis.type.TypeException: Could not resolve type alias 'id'.
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
- mybatis之Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Address...错误原因分析
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'ScoreWithCountAndTime'.
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Student'
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Types'
- org.apache.ibatis.type.TypeException: Could not resolve type alias
- org.apache.ibatis.builder.IncompleteElementException:Could not find result map cn.tengfei.core.dao.p
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map com.szh.bean.product
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map
- org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.lang.String
- org.apache.ibatis.builder.xml.IncompleteStatementException: Could not find result map java.util.Map