springboot项目配置类使用@ConfigurationProperties注解时,提示Spring Boot Configuration Annotation Proessor not found in classpath

时间:2020-01-06 18:56:56   收藏:0   阅读:101

技术分享图片

如上图所示,虽然不影响编译和运行,但是看着别扭。

解决方法:添加下面的依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <version>2.2.2.RELEASE</version>
</dependency>

原文:https://www.cnblogs.com/dubhlinn/p/12157278.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!