错误提示:
1. ERROR FrameworkServlet.initServletBean - Context initialization failed
com.hex.goframe.exception.GFRuntimeException: failed to build SqlSessionFactory!
2. Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\XXXMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error
parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause:
java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.VARCHER
3.Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.VARCHER
4.Caused by: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause:
java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.VARCHER
错误重点提取:
1.在2中可以看到,他说解析mapper文件失败,那就是mapper文件写的不合法
2.在第3,4个提示中抛出IllegalArgumentException,并且说No enum constant
org.apache.ibatis.type.JdbcType.VARCHER,意思说没有VARCHER这种类型
解决:
回来看mapper文件,因为我老是在单词中分不清a和e,老是把a拼写成e,e拼写成a,
所以本来是jdbcType = VARCHAR,手敲成了jdbcType = VARCHER
另外:
这种错误出现,项目就启动不起来,想调试都不行,只能慢慢看