我在一个login.html里设置了一个<a id="sign">链接通过jquery的方式跳转到register.html,但是却出现了下面的情况:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.Fri Jun 01 13:34:06 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Exception parsing document: template="register", line 6 - column 3login.html里的jquery是这样写的:
$("#sign").click(function(e){
                window.location.href="/register";
            })RegisterController.java里是这样写的:
@Controller
@RequestMapping("/register")
public class RegisterController {    @RequestMapping("")
    public String register(){
        return "register";
    }
}请问我错在哪里了啊?