Spring Boot Configuration An notation Processor not configured

大雁f

关注

阅读 251

2022-09-13


官方说明地址
​​​ https://docs.spring.io/spring-boot/docs/2.1.5.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor​​

解决方法
在pom.xml中添加

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<!--不传递依赖-->
<optional>true</optional>
</dependency>


精彩评论(0)

0 0 举报