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

2021-05-01 07:26

阅读:508

标签:代码   建议   mybatis   项目   exception   问题   includes   filter   des   

 1 build>
 2         resources>
 3             resource>
 4                 directory>src/main/javadirectory>
 5                 includes>
 6                     include>**/*.propertiesinclude>
 7                     include>**/*.xmlinclude>
 8                 includes>
 9                 filtering>truefiltering>
10             resource>
11             resource>
12                 directory>src/main/resourcesdirectory>
13                 includes>
14                     include>**/*.propertiesinclude>
15                     include>**/*.xmlinclude>
16                 includes>
17                 filtering>truefiltering>
18             resource>
19         resources>
20     build>

不是你的问题是maven的问题

只需将这串代码粘贴到pom.xml 文件下

建议每次Maven项目建立起来第一步拷贝这串代码

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

标签:代码   建议   mybatis   项目   exception   问题   includes   filter   des   

原文地址:https://www.cnblogs.com/springxian/p/13220989.html


评论


亲,登录后才可以留言!