eclipse启动时报错class path resource [mybatis-config.xml] cannot be opened because it does not exist
- 问题:
eclipse启动时报错class path resource [mybatis-config.xml] cannot be opened because it does not exist - 解决方案:
1.检查项目中mybatis-config.xml文件是否存在,检查mybatis-config.xml配置的路径是否正确
2.若1中没问题则修改编译文件路径:
选中项目,右键属性->java构建路径->源码:修改输出文件夹路径
最后清理一下项目,重启tomcat就ok了
3.若2还是不好使,则找到上图的输出文件夹,删除classes文件夹,在eclipse中重新构建项目