spring-boot-configuration-processor的作用


When using @ConfigurationProperties it is recommended to add 'spring-boot-configuration-processor' to your classpath to generate configuration metadata

SpringBoot默认使用yml配置文件,使用xmlproperties作为配置文件时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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM