14

My project in Spring Tool Suite report Unable to "load annotation processor factory 'org.springframework.boot.configurationprocessor.ConfigurationMetadataAnnotationProcessor' for project XXX", My project runs fine, but I do not want to see this error.I did a lot of searching, but I could not find any result. Thanks a lot.

enter image description here

snow8261
  • 847
  • 1
  • 12
  • 33

2 Answers2

22

Delete the .factory file from the project root directory.

milanbalazs
  • 3,728
  • 4
  • 13
  • 34
bzani
  • 317
  • 2
  • 5
1

You need to add the spring boot configuration processor to your project; when using maven add this dependency:

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

You find more information in the spring boot documentation.

P.J.Meisch
  • 12,062
  • 4
  • 40
  • 54