ribbon出現 com.netflix.client.config.IClientConfig that could not be found

A component required a bean of type 'com.netflix.client.config.IClientConfig' that could not be found

 

解決方法:

如果ribbon策略配置類放在主程序SpringBootApplication同包目錄下會發生未知異常,這是由於Spring boot的主程序會去掃描同一個層級目錄下的文件,這裏有兩種辦法可以解決:http://yayihouse.com/yayishuwu/chapter/2645

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章