What is difference between @controller and @restcontroller in spring boot? : Spring Boot
Answer / Kaushlendra Pratap Singh
@Controller is a component that handles requests for any type of application, not just RESTful web services. It supports multiple types of responses (HTML, JSON, XML, etc.). On the other hand, @RestController is a specialization of @Controller designed specifically for handling RESTful web services. It only generates JSON responses by default.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are beans in java spring?
What is the basic concept of spring?
How do you define the scope of a bean?
Explain the spring framework.
What is use of @repository in spring?
What is introduction in spring aop?
Why we need to integrate struts with spring?
What is aop scoped proxy in spring?
What does @repository do in spring?
What are different types of autowire?
What is around advice in spring?
What is spring boot starter tomcat? : Spring Boot