spring boot configuration annotation processor not found in classpath

在pom.xml导入依赖

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-configuration-processor</artifactId>
  <optional>true</optional>
</dependency>

1、首先要添加这个配置,并等待依赖更新完成。
2、如果出现:Re-run spring boot configuration annotation processor to update generate metadata。
忽略即可。大不了你重新编辑下。再大不了你重启下IDEA。
原文地址:https://www.cnblogs.com/youqc/p/8728725.html