java.lang.IllegalArgumentException: Could not resolve placeholder 'foo' in value

错误( 如图1 所示 ):

 

原因( 如图2 所示 ):

 

 如图3



 

 配置文件名称和client的配置文件名称必须保持一致(配置文件名如下)

    http请求地址和资源文件映射如下:

<!--[if !supportLists]-->· <!--[endif]-->/{    application}/{profile}[/{label}]

<!--[if !supportLists]-->· <!--[endif]-->/{    application}-{profile}.yml

<!--[if !supportLists]-->· <!--[endif]-->/     {label}/{application}-{profile}.yml

<!--[if !supportLists]-->· <!--[endif]-->/{    application}-{profile}.properties

<!--[if !supportLists]-->· <!--[endif]-->/{    label}/{application}-{profile}.properties

猜你喜欢

转载自chuichuige.iteye.com/blog/2394733