beginnerREST API Development

What is the difference between @Controller and @RestController?

Tests whether you know @RestController implicitly adds @ResponseBody to every handler method.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What is the difference between @Controller and @RestController?

Next Step

Continue to Can you mix blocking code inside a WebFlux pipeline? What happens if you do?← Back to all Spring Boot & Microservices questions