The difference between the Spring Controller versus RestController is the fact that the RestController implicitly adds the ResponseBody annotation to every HTTP handling method while you have to do that explicitly with the standard Spring Controller from Spring MVC.
That's it. That's the only difference between the Spring Controller and RestController.
So when do you use the Spring RestController over the Controller? Well, any time you're doing RESTful API development with Spring Boot! That's when!
Nesta página do site você pode assistir ao vídeo on-line The difference between Controller vs RestController in Spring duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Cameron McKenzie 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,663 vezes e gostou 92 espectadores. Boa visualização!