內容:
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。
解決思路:
意思大概是本來有一個能綁定的默認對象,但是一個都找不到。
看一下詳細信息。
從上述紅色圈住的內容來看大概是和springcloud的hystrix-stream有關。
再從hystrix-stream的特性來推測。因爲hystrix是對外持續輸出數據的。
所以這個缺少的Binder應該是hystrix-stream在初始化階段找不到的,能夠綁定的默認輸出源。
報錯信息也認證了我的觀點,在生命週期的初始化階段沒有找到默認輸出源。
hystrix-stream的輸出源有rabbit和kafa之類。我用的是rabbit。因此加上rabbit依賴
問題解決!