Here is my RestController Class
@RestController
@RequestMapping(value="/user")
public class Test {
@RequestMapping(value="/{userEmailId}",method=RequestMethod.GET)
public ModelAndView getUser(@PathVariable("userEmailId") String userEmailId){
//something goes here and get User class object
ModelAndView mav=new ModelAndView("showuser");
mav.addObject("user", user);//user is User class object
return mav;
}
}
I want to display this user object in showuser.jsp using Angular JS How can I do that?