Spring Boot Configuration Annotation Processor not found in classpath

Spring Boot Configuration Annotation Processor not found in classpath

今天的spring boot需要将配置文件中的数据注入到实体类里面,但是有这样的警告,看着很不舒服
我的实体类的注解是

@Component
@ConfigurationProperties(prefix = "person")
@PropertySource("classpath:application.yaml")

点开IDEA的提示文档提示文档
Spring Boot Configuration Annotation Processor not found in classpath_第1张图片
我的是Maven项目,按照它的说明,我需要在依赖中导入相关的依赖

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

但是这样还是不能解决
重启之后file->setting->build,execution,deployment->compiler->Annotation Processor->选上Enable annotation processing->apply->ok

你可能感兴趣的:(遇到的错误,spring,boot)