在页面上填好注册信息,点击注册后,调用了后台Controller类的这个方法,注册成功了,我的返回值要怎么写才能让它返回到登录页面?
@RequestMapping(value = "/regist.action", method = RequestMethod.POST)
@ResponseBody
public String userRegist(User user){
int rows = userService.registUser(user);
if(rows > 0){
return "OK";
}else {
return "FAIL";
}
}