1.错误现象
java.io.IOException: Could not find resource mybatis-config.xml
at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:114)
at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:100)
at com.sdbi.test.TestFindBySid.main(TestFindBySid.java:16)

Process finished with exit code 0

错误的意思是:找不到资源文件mybatis-config.xml

IDEA使用MyBatis出现java.io.IOException: Could not find resource mybatis-config.xml错误解决办法

 

 2.解决办法

将资源文件mybatis-config.xml所在的config文件夹Mark Directory as成Resources Root

方法一:

IDEA使用MyBatis出现java.io.IOException: Could not find resource mybatis-config.xml错误解决办法

 

 方法二:

IDEA使用MyBatis出现java.io.IOException: Could not find resource mybatis-config.xml错误解决办法

 

 IDEA使用MyBatis出现java.io.IOException: Could not find resource mybatis-config.xml错误解决办法

 

相关文章:

  • 2021-12-28
  • 2021-07-19
  • 2021-11-18
  • 2021-08-13
猜你喜欢
  • 2022-01-07
  • 2021-05-10
  • 2022-12-23
  • 2021-04-26
  • 2021-07-17
相关资源
相似解决方案