单元测试提示下面错误:

核心错误:
Failed to parse mapping resource: 'file [D:\490993\安装程序\DPAP2.1\dpap_v2.0.1\dpap_v2.0.1\dpap\gis_workspaces1\gis-edi\gis-edi-cn-service\target\classes\com\deppon\gis\module\express\server\META-INF\ibatis\exp-dept-region-job-mapper.xml]'; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class . Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.deppon.gis.module.job.server.util.SdoGeometryTypeHandler'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.deppon.gis.module.job.server.util.SdoGeometryTypeHandler
加粗部分就是问题所在地方:
一看这个文件果然有:

删掉即可。

正常运行了
本文介绍了一个关于MyBatis框架中类型别名解析失败的问题及其解决方案。该问题表现为无法找到指定的类型处理器,导致单元测试失败。通过删除引起问题的XML映射文件,成功解决了此错误。
2万+

被折叠的 条评论
为什么被折叠?



