【SpringBoot_Error】关于SpringBoot项目中经常出现yml/xml识别不到的问题

Problems

关于关于SpringBoot项目中经常出现yml/xml识别不到的问题
【SpringBoot_Error】关于SpringBoot项目中经常出现yml/xml识别不到的问题_第1张图片

Solution

在pom.xml文件的标签中添加如下代码:

>     <build>
        <resources>
            
            <resource>
                <directory>src/main/java/directory>
                <includes>
                    <include>**/*.xmlinclude>
                includes>
                <filtering>falsefiltering>
            resource>
            
            <resource>
                <directory>src/main/resourcesdirectory>
                <includes>
                    <include>**/*.propertiesinclude>
                    
                    <include>**/*.ymlinclude>
                    <include>**/*.xmlinclude>
                includes>
                <filtering>falsefiltering>
            resource>
        resources>
    build>

你可能感兴趣的:(细节和错误,[03]springboot,spring,boot,xml,java,spring,mysql,后端)