Mybatis 报错 java.io.IOException: Could not find resource mybatis-config.xml
原因:配置文件没有加载上
解决:
方法一:新建一个文件夹,将mybatis-config.xml放入其中,右键文件夹,build path->use as source folder
方法二:将mybatis-config.xml和要运行的程序放入同一个目录下
原因:配置文件没有加载上
解决:
方法一:新建一个文件夹,将mybatis-config.xml放入其中,右键文件夹,build path->use as source folder
方法二:将mybatis-config.xml和要运行的程序放入同一个目录下