In Spring Boot, the _____ annotation is used to denote a reactive programming model in a controller.
- @Controller
- @ReactiveController
- @ResponseBody
- @RestController
In Spring Boot, the @ReactiveController annotation is used to denote a reactive programming model in a controller. This annotation is specifically designed for reactive programming, and it's part of the Spring WebFlux framework, which enables reactive and non-blocking programming. It's used to define controllers that handle asynchronous and reactive operations.
Loading...
Related Quiz
- You have a Spring Boot application that integrates with several external services. How would you structure your tests to ensure that the interactions with external services are correctly handled, without actually interacting with the real services during the tests?
- Which of the following is true about the deleteById method of a JpaRepository?
- In Spring Boot, to order the execution of validation groups, the _____ interface needs to be implemented along with defining a sequence list of groups.
- In a typical Spring Boot application, which of the following is used to assert that the actual result meets the expected result?
- To enable method-level security in Spring Security, the _____ annotation must be added to the configuration class.