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

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