Spring Boot Configuration Annotation Processor not configured

拼搏现实的明天。 2024-03-27 17:36 169阅读 0赞

在这里插入图片描述
原因
使用@ConfigurationProperties注解 提示 “Spring Boot Configuration Annotation Processor not found in classpath ”
解决方案
打开文档
在这里插入图片描述
添加下面依赖
在这里插入图片描述

  1. <dependency>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-configuration-processor</artifactId>
  4. <optional>true</optional>
  5. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,169人围观)

还没有评论,来说两句吧...

相关阅读