springboot configuration annotation processor not found in classpath问题

springboot configuration annotation processor not found in classpath

今天使用springboot开发注解配置时,在添加完@ConfigurationProperties(prefix = “person”)注解之后,IDEA报这个错误,根据报错提示点击查看源文档:
https://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
发现需要添加注解:

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

在项目中添加完注解运行发现已经没有问题了,但是IDEA还会提示:
这里写图片描述

处女座的我看着也很难受,重启IDEA刷新maven都不好使,只能先这么留着了,各位小伙伴有解决办法欢迎留言告知哦~


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值