


The error may exist in com/finaAss/entity/javaBeans/GoodsTypes.xml
The error occurred while processing mapper_resultMap[basicMap]
Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: 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 ''. Cause: java.lang.ClassNotFoundException: Cannot find class:
这意思好像是没读到_GoodsTypes的别名,不明白到底什么意思,求大神出手。
配置文件有问题,你试试把typeAliases移到mapper里面的最前面试试。

你是这个意思么?用注解?没效果哦,就是感觉很诡异,其他的别名都读出来了,就这个xml从头到脚都是问题。
我没有用spring哦,就单单一个mybatis,很干净的。
不是类中无须加东西,xml中把typeAliases标签内容移到mapper标签里面试一下。