Hi I am new to Spring MVC ,I want to call method from one controller to another controller ,how can I do that .please check my code below
@Controller @R
You should place method getUser in a service (example UserService class) .
In the getUser controller, you call method getUser in the Service to get the User
Similarly, in the updatePswd controller, you call method getUser in the Service ,too