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!
Auf dieser Seite können Sie das Online-Video The difference between Controller vs RestController in Spring mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Cameron McKenzie 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,663 Mal angesehen und es wurde von 92 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!