nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org

案头见蠹鱼,犹胜凡俦侣。这篇文章主要讲述nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org相关的知识,希望能为你提供帮助。
1、环境mybaties:
配置映射运行时出现:nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘VARCHAR‘.   Cause: java.lang.ClassNotFoundException: Cannot find class: VARCHAR
2、仔细检查了十几分钟,才发现映射配置错误;
【nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org】改前:

< result column="FILE_ID" javaType="VARCHAR" property="fileId"/>

改后:

< result column="FILE_ID" jdbcType="VARCHAR" property="fileId"/>


3、牵扯出下面两者的区别

javaType:表示的实体类中字段的类别

jdbcType:表示的数据库表中的字段类别;







    推荐阅读