Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain @RestController annotation in Spring Boot?
Answer:
The @RestController annotation helps you to add @ResponseBody and @Controller annotations to the class to write RESTFul web service APIs.
You can also import org.springframework.web.bind.annotation package in your file.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook