Factory method ‘sqlSessionFactory’ threw exception; nested exception
is org.springframework.core.NestedIOException: Failed to parse mapping
resource: ‘file
[D:\TempCode\JAVA\workspace_idea1\springcloud2020b\cloud-provider-8001\target\classes\mapper\PaymentMapper.xml]’;
nested exception is 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 ‘Payment’. Cause:
java.lang.ClassNotFoundException: Cannot find class: Payment
结果是
,
,
,
拼写错误
PaymentMapper.xml:
application.yml:
packages:
“entities”