Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'custom.property.hello' in value "${custom.property.hello}" config源码

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.configController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'custom.property.hello' in value "${custom.property.hello}"

 

 

 

在spring cloud config 源码调换里面  JsonProperySourceLocator 类 获取值写错啦

 

 获取get value  改成 get key

 

posted @ 2021-12-29 16:32  南北12345678  阅读(407)  评论(0编辑  收藏  举报