In Spring Boot, to map HTTP GET requests to a specific handler method, the _____ annotation is used.
- @GetMapping
- @RequestMapping
- @RequestMethod
- @GetMappingRequestMapping
In Spring Boot, the @GetMapping annotation is used to map HTTP GET requests to a specific handler method. This annotation helps define which method should be invoked when a GET request is made to a particular URL. The other options are not used specifically for mapping GET requests in Spring Boot.
Loading...
Related Quiz
- In unit testing of Spring Boot applications, the _____ method of Assert class is commonly used to check if the specified condition is true.
- In the Spring Boot project structure, the _____ directory is recommended for placing application's static content.
- How does enabling lazy initialization affect the startup time of a Spring Boot application?
- How can you exclude certain auto-configuration classes in Spring Boot to prevent them from being applied?
- For a service to register itself with Eureka, it must have the _____ annotation in its main application class.