Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project in Spring Tool Suite report "Unable to load annotation processor factory"

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

like image 720
snow8261 Avatar asked May 24 '17 01:05

snow8261


2 Answers

Delete the .factory file from the project root directory.

like image 124
bzani Avatar answered Nov 03 '22 01:11

bzani


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.

like image 40
P.J.Meisch Avatar answered Nov 03 '22 03:11

P.J.Meisch