What does @RestController help Spring Boot do?

Practice this question from Quiz: REST and HTTP, with options and an explanation.

Question

What does @RestController help Spring Boot do?

Option A — Correct answer

Map HTTP requests and serialize Java return values as responses

@RestController is used for web endpoints that return response bodies such as JSON.

Option B

Create database indexes

Option C

Start a JVM garbage collection cycle

Option D

Compile Java source files

Quiz: REST and HTTP

All questions · Previous question · Next question

Open on QuizMaker