Problems
关于关于SpringBoot项目中经常出现yml/xml识别不到的问题
Solution
在pom.xml文件的
<build></build>
标签中添加如下代码:> <build><resources><!--检测mapper+xml,本项目数据访问层的SQL xml文件放在Java包中,而非resources下--><resource><directory>src/main/java/</directory><includes><include>**/*.xml</include></includes><filtering>false</filtering></resource><!--检测resources目录下的yml文件以及xml文件--><resource><directory>src/main/resources</directory><includes><include>**/*.properties</include><!-- 配置一下yml文件 --><include>**/*.yml</include><include>**/*.xml</include></includes><filtering>false</filtering></resource></resources></build>