Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'associationInfo'. Cause:

部分错误信息

Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'associationInfo'.  Cause: java.lang.ClassNotFoundException: Cannot find class: associationInfo
    at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118) ~[mybatis-3.5.0.jar:3.5.0]
    at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:68) ~[mybatis-3.5.0.jar:3.5.0]
    at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:137) ~[mybatis-3.5.0.jar:3.5.0]
    at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:130) ~[mybatis-3.5.0.jar:3.5.0]
    at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120) ~[mybatis-3.5.0.jar:3.5.0]
    ... 77 common frames omitted
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'associationInfo'.  Cause: java.lang.ClassNotFoundException: Cannot find class: associationInfo
    at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120) ~[mybatis-3.5.0.jar:3.5.0]
    at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149) ~[mybatis-3.5.0.jar:3.5.0]
    at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116) ~[mybatis-3.5.0.jar:3.5.0]
    ... 81 common frames omitted
Caused by: java.lang.ClassNotFoundException: Cannot find class: associationInfo

xml内容

Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'associationInfo'. Cause:_第1张图片

解决思路

为parameterType设置别名或者补全路径


你可能感兴趣的:(java)