Closed chenbihao closed 1 month ago
Annotation-based programming model have ben deprecated for about 5 years and gace been removed for about 2 years, so please read this - https://docs.spring.io/spring-cloud-stream/reference/spring-cloud-stream/producing-and-consuming-messages.html
You can also read more on error-handling here - https://docs.spring.io/spring-cloud-stream/reference/spring-cloud-stream/overview-error-handling.html#handle-error-messages
Annotation-based programming model have ben deprecated for about 5 years and gace been removed for about 2 years, so please read this - docs.spring.io/spring-cloud-stream/reference/spring-cloud-stream/producing-and-consuming-messages.html
then should the content in the last chapter of this page be removed ?
Not really, since @ServiceActivator
is not at all related to Spring Cloud Stream. It's an artifact of Spring Integration framework which we do support since Spring Cloud Stream and binders ate build on top of Spring Integration. That said, functional programming model is recommended over the @ServiceActivator
as it provides more features.
As for other annotations such as @StreamListener
, @Input/Output
, they are all gone.
Describe the issue
@ServiceActivator mode has been outdated? and some conflicts are found in the documentation
I found here producing-and-consuming-messages-#Handling Errors to use the instructions to use
@serviceActivator
to make an error handlingAnd did not see the relevant instructions in the overview-error-handling, have the@ServiceActivator mode have been removed?
To Reproduce
I use this way invalid:
But it worked:
it worked too:
Version of the framework
spring-cloud 2023.0.3
Expected behavior Screenshots