Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:C:\Users\pengmin.wang\.m2\repository\org\activiti\activiti-engine\6.0.0\activiti-engine-6.0.0.jar!/org/activiti/db/mapping/mappings.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'URL [jar:file:C:\Users\pengmin.wang\.m2\repository\org\activiti\activiti-engine\6.0.0\activiti-engine-6.0.0.jar!/org/activiti/db/mapping/mappings.xml]'. Cause: java.lang.NullPointerException
时间: 2024-04-06 07:35:16 浏览: 160
Tess, if broken it is fix it you should
这是一个关于 Spring 和 MybatisPlus 的错误,可能是 SqlSessionFactory 的创建出现问题。错误信息中提到了一个 Mapper XML 文件解析出错的问题,具体原因可能是 XML 文件中存在错误或者路径不正确导致找不到该文件。建议检查一下项目的配置文件和路径设置是否正确。
阅读全文