Could not resolve placeholder 'IMAGE_SERVER_URL' in string value "${IMAGE_SERVER_URL}"


 

這種問題 在網上查的是說使用了重復的property-placeholder   可能是在別的xml 也用了property-placeholder   

 

 

 解決方法 加上  ignore-unresolvable="true"

 

 

Attribute : ignore-unresolvable
Specifies if failure to find the property value to replace a key should be ignored. Default is
 "false", meaning that this placeholder configurer will raise an exception if it cannot resolve a
 key. Set to "true" to allow the configurer to pass on the  key to any others in the context that
 have not yet visited the key in question.

 

 大概意思是 開啟后 允許配置程序將密鑰傳遞給上下文中的任何其他配置程序

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM