ajax请求没反应

来源:互联网 发布:医院网络咨询工资高吗 编辑:程序博客网 时间:2024/04/27 18:12

<span style="font-family: "microsoft yahei";">@RequestMapping(value ="/toRegister")</span>
    public String toRegister(){        return "redirect:/register.shtml";    }
Request URL:http://localhost:8080/toRegister.shtmlRequest Method:GETStatus Code:302 OKRemote Address:[::1]:8080Response Headersview sourceContent-Length:0Date:Fri, 15 Jul 2016 10:19:26 GMTLocation:http://localhost:8080/login.shtmlServer:Apache-Coyote/1.1Request Headersview sourceAccept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8Accept-Encoding:gzip, deflate, sdchAccept-Language:zh-CN,zh;q=0.8,ja;q=0.6,zh-TW;q=0.4Connection:keep-aliveCookie:sid=18732502-4e95-475f-a0db-5244fc489e55; JSESSIONID=0200D758C2B26EF7FDF23B1944465ACCHost:localhost:8080Referer:http://localhost:8080/login.shtml;JSESSIONID=18732502-4e95-475f-a0db-5244fc489e55Upgrade-Insecure-Requests:1User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2527.0 Safari/537.36

点击注册账号总是没反应,是因为shiro过滤器拦截了url。
用<button>提交ajax没有反应,增加type=“submit”。




0 0
原创粉丝点击