A default binder has been requested, but there is no binder available

內容:
org.springframework.context.ApplicationContextException: Failed to start bean ‘outputBindingLifecycle’; nested exception is java.lang.IllegalArgumentException: A default binder has been requested, but there is no binder available。

解決思路:

意思大概是本來有一個能綁定的默認對象,但是一個都找不到。

看一下詳細信息。
hystrix從上述紅色圈住的內容來看大概是和springcloud的hystrix-stream有關。
再從hystrix-stream的特性來推測。因爲hystrix是對外持續輸出數據的。
所以這個缺少的Binder應該是hystrix-stream在初始化階段找不到的,能夠綁定的默認輸出源。

life報錯信息也認證了我的觀點,在生命週期的初始化階段沒有找到默認輸出源。
hystrix-stream的輸出源有rabbit和kafa之類。我用的是rabbit。因此加上rabbit依賴
在這裏插入圖片描述
問題解決!

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