mybatis报错 org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file[]

钦侯林
2023-12-01

一直在加载sqlSessionFactoryBean
报错信息:

nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [XXXXX]';

此错误可能出自路径错误或sql语句有问题,排查后发现下面这条报错 :
Cannot find class: VARCHAR

Cause: java.lang.ClassNotFoundException: Cannot find class: VARCHAR

检查过后问题出在 在mapper.xml文件中将jdbcType 写成javaType

 类似资料: