大家好,我叫大鸡腿,大家可以关注下我,会持续更新技术文章还有人生感悟,感谢~
@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