当前位置:网站首页>解决扫描不到xml、yml、properties文件配置

解决扫描不到xml、yml、properties文件配置

2022-07-06 09:11:00 程序员柒七

yml:

mybatis-plus:
  mapper-locations: classpath:mapper/*.xml #扫描mapper下的所有xml文件

pom:

<build>
<!--    配置自动扫描yml、properties、xml-->
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.yml</include>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.yml</include>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
</build>

原网站

版权声明
本文为[程序员柒七]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_46565024/article/details/124987000