What is @controller annotation in spring?



What is @controller annotation in spring?..

Answer / Neha Salonia

@Controller is a Spring annotation that can be applied to a class or interface to indicate that it's a controller. It plays a crucial role in handling web requests and responses.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What does autowired mean?

1 Answers  


What is spring boot in microservices? : Spring Boot

1 Answers  


How to use tomcat jndi datasource in a spring web application?

1 Answers  


How beans are created in spring?

1 Answers  


How do you define transactions in spring?

1 Answers  


What is root context in spring?

1 Answers  


What is the use of @repository?

1 Answers  


What is idref in spring?

1 Answers  


What is inversion of control (ioc)?

1 Answers  


How to handle exceptions in the spring mvc framework?

1 Answers  


What are the advantages of dependency injection in spring?

1 Answers  


What is a framework in it?

1 Answers  


Categories