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

 

 

發佈了75 篇原創文章 · 獲贊 2 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章