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.
Loading...
Related Quiz
- To optimize the performance of a Spring Boot application, developers can use ________ to profile and monitor the application in real-time.
- In Spring Data JPA, the _____ is responsible for managing transaction boundaries during the execution of a method annotated with @Transactional.
- To perform integration testing in Spring Boot, the _____ annotation is used to enable full application context loading.
- Which of the following annotations is specialized over the @Component annotation to indicate that a class is a web controller?
- In a Spring Boot application, which annotation is primarily used to mark a method as cacheable?