The @RequestBody annotation is used to bind the value of the HTTP request body to a(n) _____ in a controller method.
- ResponseEntity
- HttpRequest
- ModelAttribute
- Method parameter
In Spring Boot, the @RequestBody annotation is used to bind the value of the HTTP request body to a method parameter in a controller method. This allows you to access and process the data sent in the request body. The other options represent different types or concepts and are not used for binding request bodies to controller methods.
Loading...
Related Quiz
- For custom validation logic in Spring Boot, the _____ method of the ConstraintValidator interface needs to be implemented.
- You are developing a Spring Boot application with a large team. How would you manage and segregate configuration properties for different modules?
- You are developing a Spring Boot application that needs to interact with multiple databases. How would you design the data source configuration and connection pooling to ensure optimal performance and maintainability?
- What is the primary purpose of monitoring in a Spring Boot application?
- Which of the following can be used to enable method security annotations in a Spring Security configuration class?