Solution for spring cloud config could not resolve placeholder

The reason is that PropertyPlaceholderConfigurer is used in spring configuration, which makes it impossible to read the configuration in spring cloud config. Add the following configuration to the original PropertyPlaceholderConfigurer configuration to solve:

<property name="ignoreUnresolvablePlaceholders" value="true" />   

 

Reference article: https://blog.csdn.net/javaloveiphone/article/details/58146790

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325227150&siteId=291194637