当前位置:网站首页>Solve the problem that XML, YML and properties file configurations cannot be scanned

Solve the problem that XML, YML and properties file configurations cannot be scanned

2022-07-06 10:40:00 Programmer seven seven

yml:

mybatis-plus:
  mapper-locations: classpath:mapper/*.xml # scanning mapper All under xml file 

pom:

<build>
<!--     Configure automatic scanning 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>

原网站

版权声明
本文为[Programmer seven seven]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060911410327.html