spring

HTTP 405 에러.

somiyuralove 2018. 12. 13. 00:35

Controller에서 @RequestMapping 어노테이션의 RequestMethod.post로 설정함.


--------------- example ---------------------------------------------------

@RequestMapping(value = "/login/", method = RequestMethod.GET)

public String login(Locale locale, Model model) {

log.info("Login!");

return "login/login";

}