简体   繁体   中英

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.

在此处输入图片说明

从项目根目录中删除.factory文件。

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM