The XML location is 'file [D:XXXXXX/mybatis-conf.xml] Cause: java.lang.NullPointerException
完整错误: 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: 'file [D:\workspace_java\sdk-kit-backend\target\classes\mapper\mybatis-conf.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\workspace_java\sdk-kit-backend\target\classes\mapper\mybatis-conf.xml]'. Cause: java.lang.NullPointerException
错误原因:一 .application.properties 中只配置了mapper.xml路径没有配置mybatis核心配置文件mybatis-conf.xml的路径
错误原因二:把mybatis核心配置文件写在了mapper.xml同一个的路径下
正确配置