Frage im Vorstellungsgespräch bei EPAM Systems

Java Spring RestController annotation description

Antwort im Vorstellungsgespräch

Anonym

6. März 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.