为了账号安全,请及时绑定邮箱和手机立即绑定

sqlSessionFactory总是报错!

2021-02-22 12:10:57.907  WARN 24824 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.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 java.io.FileNotFoundException: Could not open ServletContext resource [/mybatis-config.xml]


正在回答

1 回答

 Could not open ServletContext resource [/mybatis-config.xml]  看下配置信息是否配置有问题

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

sqlSessionFactory总是报错!

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号