spring自定义属性application提示

依赖maven

     <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

配置json文件META-INF/additional-spring-configuration-metadata.json、META-INF/spring-configuration-metadata.json

具体查询别的框架‘照猫画虎’配置

原文地址:https://www.cnblogs.com/fly-book/p/13211936.html