EPAM Systems interview question

Java Spring RestController annotation description

Interview Answer

Anonymous

6 Mar 2025

The @RestController annotation in Spring Boot is a specialized version of @Controller that is used to create RESTful web services. It is a combination of @Controller and @ResponseBody. Tells Spring that the class handles HTTP requests.