configuration注解报错
时间: 2023-12-15 13:02:20 浏览: 89
根据你提供的引用内容,报错是在使用@ConfigurationProperties注解时出现的。具体报错信息没有给出,所以无法确定具体的解决方法。但是有一种可能的解决方法是在配置类上添加@EnableConfigurationProperties注解,并指定对应的配置类,如@EnableConfigurationProperties(CorsProperties.class)。这样可以将@ConfigurationProperties注解的配置属性与对应的配置类关联起来,解决报错问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [IDEA使用注解@ConfigurationProperties时报错解决](https://blog.csdn.net/qq_42635345/article/details/85761314)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [记录@ConfigurationProperties注解注入集合配置的报错](https://blog.csdn.net/m289111782/article/details/129830005)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文