springboot配置文件application没有生效处理方式

2022-11-13 11:07:52 浏览数 (1)

springboot application.properties不生效(没有生效就是那个文件不是叶子的形态的玩意)

代码语言:javascript复制
<build>
    <resources>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.*</include>
            </includes>
        </resource>
        <resource>
            <directory>src/main/resources</directory>
            <includes>
                <include>**/*.*</include>
            </includes>
        </resource>
    </resources>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

0 人点赞