What is difference between @controller and @restcontroller?
Answer / Virender Kumar Tiwari
@Controller is a basic controller that supports both RESTful and non-RESTful requests. @RestController, however, is specifically for handling RESTful web services by combining the functionality of @Controller and @ResponseBody.
| Is This Answer Correct ? | 0 Yes | 0 No |
How does @transactional work in spring?
What are the different types of ioc container?
What is the use of beanfactory in spring?
When singleton beans are created in spring?
What are three types of annotations?
What is the implementation of the bean factory container?
What is the difference between constructor and setter injection?
What is the purpose of contextloaderlistener in spring?
Explain the functions of the following annotations: @component, @controller, @repository, @service.
How many types of injection method used in spring?
What is the main use of spring batch framework?
What are the components of spring framework?