Maven 配置问题 - could not find resource mybatis-config.xml

Posted Alan*Chen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven 配置问题 - could not find resource mybatis-config.xml相关的知识,希望对你有一定的参考价值。

需要在pom中加入以下代码

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>

以上是关于Maven 配置问题 - could not find resource mybatis-config.xml的主要内容,如果未能解决你的问题,请参考以下文章

如何解决设置maven时Could not read settings.xml

Maven 项目创建时遇到问题 (Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0

Maven 项目创建时遇到问题 (Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0

Eclipse maven创建web项目报错Could not resolve archetype

Could not create local repository at /home/yizhenn/.mIDEA倒入maven项目无法导报问题

idea 使用 mvn clean package 报错 Could not create local repository at