SpringBoot 中 application.properties 提示 Cannot resolve configuration property 'xxxx'
1. 导包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
2. 添加
在报错的地方按 Alt + Enter Enter Enter
就会自动创建一个文件为 additional-spring-configuration-metadata.json
.
等待一会就不会报错了, 大概 0-3 分钟不等.