Controller, RestController, ResponseBody & RequestBody tutorial. Spring Boot MVC tutorial. Spring Boot Rest Service tutorial.
Controller annotation is used to annotate the class which then can catch http requests and have methods that can process those http requests.
RestController annotation is used to annotate the class which can also catch http requests but it is more suitable for REST services and saves us time and keeps the code clean.
Learn the difference between Controller & RestController in today's video.
Instagram: https://www.instagram.com/javacodingcommunity/
Postman: https://www.postman.com/
Github: https://github.com/javacodingcommunity