标签:添加 rop recommend 警告 ada prope pom 使用 org
When using @ConfigurationProperties it is recommended to add 'spring-boot-configuration-processor' to your classpath to generate configuration metadata
SpringBoot默认使用yml
配置文件,使用xml
或properties
作为配置文件时SpriingBooot建议将spring-boot-configuration-processor
添加到类路径生成配置元数据,其余用法和yml
一致。
消除警告,只需要将spring-boot-configuration-processor
依赖添加到pom.xml
。
在denpendencies节点下添加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
spring-boot-configuration-processor的作用
标签:添加 rop recommend 警告 ada prope pom 使用 org
原文地址:https://www.cnblogs.com/xsjzhao/p/10901579.html