When developing reactive applications in Spring Boot, which annotation is used to define a reactive controller?

  • @Controller
  • @ReactiveController
  • @ReactiveRest
  • @RestController
In Spring Boot, when developing reactive applications, the @RestController annotation is used to define a reactive controller. This annotation is similar to the traditional @Controller annotation but is enhanced to support reactive programming. A class annotated with @RestController will handle incoming requests in a non-blocking, reactive way, allowing you to build responsive and scalable applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *