Mybatis 报错 java.io.IOException: Could not find resource mybatis-config.xml

原因:配置文件没有加载上

解决:

方法一:新建一个文件夹,将mybatis-config.xml放入其中,右键文件夹,build path->use as source folder

方法二:将mybatis-config.xml和要运行的程序放入同一个目录下

posted @ 2019-03-28 14:34  大尾巴贝贝  阅读(7155)  评论(0)    收藏  举报