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。
posted @ 2018-04-06 20:14  youqc  阅读(11978)  评论(0编辑  收藏  举报