SpringBoot使用@ConfigurationProperties注解出现警告的问题

在SpringBoot中使用@ConfigurationProperties注解出现警告,虽然该警告不影响程序正常运行,但看着糟心

pom.xml中添加以下内容即可消除

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
posted @ 2020-05-30 00:12  Rhettttt  阅读(739)  评论(0)    收藏  举报