@ConfigurationProperties @Configuration
时间: 2023-10-12 17:01:04 浏览: 80
@ConfigurationProperties是Spring Boot中的一个注解,用于将配置文件中的属性值自动绑定到相应的Java对象中。通过在普通类上使用@ConfigurationProperties注解,并指定前缀,可以将配置文件中以该前缀开头的属性值与该类的属性自动绑定起来。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Spring Boot中注解@ConfigurationProperties的三种使用场景](https://blog.csdn.net/wo541075754/article/details/104575745)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [@Configuration、@ConfigurationProperties用法](https://blog.csdn.net/qq_45545968/article/details/110355408)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文