今天跟大家分享定义Configuration Processor读取spring配置的知识。 1 引入maven依赖 <!-- configuration-processor --> <dependency> <groupId>org.springframework.boot</groupId>