67,542
社区成员
发帖
与我相关
我的任务
分享
<form id="actform" method=post action="activeEmail.do" >
<input type="hidden" id="email" name="email" value="${account.email}">
<input type="hidden" id="pwd" name="pwd" value="${account.pwd}">
</form>
[WARN ]?? 2013-12-17 16:39:53,510 method:org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleHttpRequestMethodNotSupported(DefaultHandlerExceptionResolver.java:194)
Request method 'GET' not supported
你控制器里面配置的地址是:user/activeEmail
你form表单里面的地址是:activeEmail.do
两个地址不一样啊
@RequestMapping(value = "user/activeEmail", method = RequestMethod.POST)
public String activeEmail(@RequestParam("email") String email,
@RequestParam("pwd") String pwd,
HttpSession session,RedirectAttributes model,
HttpServletRequest request) {
.........
}
我都有在controller里面定义了相应的方法了,但是不知道怎么回事,没有进这个方法
因为我没有写相应的get方法,所以就报405错误了
HTTP Status 405 - Request method 'GET' not supported
type Status report
message Request method 'GET' not supported
description The specified HTTP method is not allowed for the requested resource.
Apache Tomcat/6.0.37