Monthly Archives: February 2019

controller, restcontroller, spring boot

Difference Between the @Controller and @RestController

Spring Framework introduced @Controller and @RestController annotations to create a controller. Basically, the controller is used to handling the client requests for a particular resource. For example mydomain.com/home This request goes to dispatcher servlet then it will be forwarded to controller corresponding methods with that URL mapping If you create your controller using @Controller annotation Continue Reading »