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

Posted 榕树猎人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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、仔细检查了十几分钟,才发现映射配置错误;

改前:

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

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


3、牵扯出下面两者的区别
javaType:表示的实体类中字段的类别
jdbcType:表示的数据库表中的字段类别;





以上是关于nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org的主要内容,如果未能解决你的问题,请参考以下文章

nested exception is io.lettuce.core.RedisCommandTimeoutException

nested exception is io.lettuce.core.RedisCommandTimeoutException

nested exception is org.apache.ibatis.reflection.ReflectionExceptio

Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks

HTTP Status 500 - Request processing failed; nested exception is org.hibernate.exception.GenericJDBC

随手记录关于Factory method 'eurekaApplicationInfoManager' threw exception; nested exception is j(代