Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Types'
2017-03-31 15:46
495 查看
第一次写,csdn博客,也是想分享以下经验。
这段时间遇到了这个问题 Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Types'
上网上查时,说是把resultType改成resultMap。因为,resultType仅仅是一个实体类,而resultMap可以是一个实体类,也可以是多个实体类。把这写类放到一个map集合中有mybatis根据需求动态管理。
然而,我的问题还是没解决。发现,我的update查询语句的参数,是一个实体类,而我却传入了映射的Map集合类名。这样,导致启动服务时,tomcat也会出现以上错误。
后来改正,把parameterType="Types" ,改成type实体的全路径,问题解决了。
相关文章推荐
- 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 'ScoreWithCountAndTime'.
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Student'
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap‘
- org.apache.ibatis.type.TypeException: Could not resolve type alias 'id'.
- 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
- Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias
- 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'
- MyBatis3.4.0以上的分页插件错误:Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.stateme
- Could not resolve type alias 'categoryMap'. Cause: java.lang.ClassNotFoundException: Cannot find cl
- org.apache.ibatis.builder.IncompleteElementException : Could not find parameter map com.vialove.ais
- org.apache.ibatis.builder.IncompleteElementException:Could not find result map cn.tengfei.core.dao.p
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map com.vo.app