adspace


What is the use of @controller in spring?

Answer Posted / Nivedita Bhatt

@Controller in Spring is a stereotype for defining classes that handle HTTP requests and responses, typically as part of an MVC application. It extends the functionality provided by the @Component annotation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518


What is lazy class?

490