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!
En esta página del sitio puede ver el video en línea The difference between Controller vs RestController in Spring de Duración hora minuto segunda en buena calidad , que subió el usuario Cameron McKenzie 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,663 veces y le gustó 92 a los espectadores. Disfruta viendo!