页面代码:function gotoReg(){
    window.location.href = "gotoreg.do";
}controller代码:@Controller
public class UserController {
 @RequestMapping("/gotoreg.do")
    public String gotoreg(){
        return "reg";
    }
}
我的页面是放在WEB-INF/jsp/目录下,不能直接跳过去,就想这样跳转.
但是报404,找不到gotoreg.do.
求解,谢谢!