Google News
logo
Java Spring MVC - Interview Questions
How to declare a class as a controller class in Spring MVC?
The @Controller annotation is used to declare a class as a controller class. It is required to specify this annotation on the class name. For example :
 
@Controller  
class Demo  
{  
  
}

 

Advertisement