Spring Cloud Stream - Actuator endpoint

孤街浪徒 提交于 2020-08-11 05:09:43

问题


I'm trying to expose Spring Boot actuator endpoint for my binding configuration. My app is quite simple just with couple of KStream bindings. It is written in functional way without any "binding" annotations like @EnableBinding or @StreamListener. It is up and running and when I access /actuator/bindings it crashes with following exception: Binding implementation `org.springframework.cloud.stream.binder.DefaultBinding` must implement this operation before it is called (through reference chain: java.util.ArrayList[0]->org.springframework.cloud.stream.binder.DefaultBinding["input"])

My question is what the reason to throw UnsupportedOperationException from org.springframework.cloud.stream.binder.Binding#isInput() method and don't override it in DefaultBinding which is used for KStream? Or maybe DefaultBinding is completely wrong bean for KStream binding?

Thanks.

来源:https://stackoverflow.com/questions/59743333/spring-cloud-stream-actuator-endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!