Отправляю из формы действие на
<form name='recoverForm' action="<c:url value='recover'/>" method='POST'>
весна:
@Controller
@RequestMapping(value = "recover")
public class RecoverController {
@RequestMapping(method = RequestMethod.GET)
public String recoverPage(Map<String, Object> model) {
return "recover"; //this works
}
@RequestMapping(method = RequestMethod.POST)
public String recover(Map<String, Object> model) {
System.out.println("_____________recover in action");
return "home"; //error 405
}
Но я получаю ошибку 405 - Метод запроса POST не поддерживается.
Почему это? Я отправляю post request
, а у контроллера есть метод отправки, не так ли?
GET
работает? - person timothyclifford   schedule 17.12.2016spring-sequrity.xml
- person thinker   schedule 17.12.2016