问题
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