@ConfigurationProperties
maven
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
配置
实体获取配置
测试
嵌套获取配置
参考文章
Generating Your Own Metadata by Using the Annotation Processor