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

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

posted @ 2020-06-30 09:32  fly_bk  阅读(194)  评论(0编辑  收藏  举报