Spring Configuration Processor
依赖说明:为开发人员生成配置元数据,以便在使用自定义配置文件时提供上下文帮助(例如application.properties.yml文件)
主要作用是能直接在配置文件中读数据。spring默认使用yml中的配置,但有时候要用传统的xml或properties配置,这时候就需要用到spring configuration processor。
参考:
spring configuration processor 使用
springboot使用spring-boot-configuration-processor获取配置文件
spring-boot-configuration-processor用法
spring-boot-configuration-processor作用和实战
POM
<!--Spring Configuration Processor-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
xx
1676

被折叠的 条评论
为什么被折叠?



