I am trying to build a web application that handles both @RestController and @Controller.
As far as I understand that @RestController is for API testing using postman to handle crud processes on the other hand @Controller is to handle crud in model view. Is it possible to create both of these controllers for one entity class in Spring boot application and make them both call the same method from the service class which handles the logic of the crud implementation? Please provide an example to your explanation with an entity class and both of the controllers to clear the idea for me.