CIBC interview question

Difference between @Controller and @RestController