文章目录 配置文件效果步骤 配置文件效果 到 步骤 1、添加依赖 <!--configuration-processor--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> 2、在变量处Alt+Enter自动生成metadata.json文件 3、重新构建项目即可