当前位置: 代码迷 >> 综合 >> 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

热度:11   发布时间:2024-02-05 17:35:21.0

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了
  相关解决方案