@RestController handles HTTP; @Service handles business logic.
In Spring Boot, a @RestController is meant to manage HTTP requests and responses, acting as the entry point for user interactions. It often invokes a @Service, which contains the business logic. For instance, in an e-commerce app, a @RestController may handle a purchase request and delegate the business logic to a @Service to process the order.
Additional Notes
How do @RestController and @Service differ in a Spring Boot app?