When I use spring3 @Controller like this:
@RequestMapping(\"/userCenter\")
@Controller
public class LoginCtrl {
@RequestMapping(\"/loginPage\")
publ
Actually,@RestController could also return view...
After one day research and read document,I got a solution
Let me share the solution with everyone:
First,set the controller method's return type to be "ModelAndView"
Second,set your view path like this
ModelAndView mav = new ModelAndView("userCenter/loginPage");
Finally
return mav;
You would get the right jsp page view content