cloud not resolve placeholder
时间: 2023-10-12 11:05:12 浏览: 56
"Could not resolve placeholder"错误一般是由于在Spring配置加载properties文件时引起的。经过查找相关资料,这个错误很有可能是使用了多个PropertyPlaceholderConfigurer或者多个<context:property-placeholder>的原因,或者是多个PropertyPlaceholderConfigurer与<context:property-placeholder>混合使用。如果在配置中使用了类似以下的配置,就会报上述错误,无论是在多个配置文件中还是分别在不同文件中:
<context:property-placeholder location="xxx.properties" ignore-unresolvable="true" />
在Spring 2.5中,<context:property-placeholder>没有ignore-unresolvable属性,此时可以改用PropertyPlaceholderConfigurer。实际上,上述配置与使用PropertyPlaceholderConfigurer等价。
综上所述,解决该问题的方法是检查Spring配置文件,确保只使用一个PropertyPlaceholderConfigurer或者一个<context:property-placeholder>,并避免混合使用多个配置器。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Could not resolve placeholder 解决方案](https://blog.csdn.net/u012039409/article/details/77088653)[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* [resolve-cloud:ReSolve云服务命令行界面](https://download.csdn.net/download/weixin_42171132/15473997)[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 ]
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)