게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
jQuery post 메소드 오류 (feat. Spring MVC)
게시물ID : programmer_21290짧은주소 복사하기
작성자 : 케빈ah
추천 : 0
조회수 : 439회
댓글수 : 0개
등록시간 : 2017/08/31 00:30:04
옵션
  • 베스트금지
  • 본인삭제금지
<< SCRIPT >>
 jQuery.post(arr[0] + "/signcap/root/savesignature",
{
imageBase64: image_content,
pdf: pdf_hidden,
pdevname: pdev_hidden
},
function (data, status) {
if (status == 'success') {
alert("Success");
}
).done(function(){
alert("done");
}).fail(function(xhr, textStatus, errorThrown){
alert("failed");
}).complete(function() {
alert("completed");
});

<< CONTROLLER >>
@RequestMapping(value = "/savesignature", method = RequestMethod.POST)
@ResponseBody
public String saveBlog(
@RequestParam String imageBase64,
@RequestParam String pdf,
@RequestParam String pdevname) throws IOException { ... }


Aug 30, 2017 11:22:43 AM org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver handleHttpRequestMethodNotSupported
WARNING: Request method 'POST' not supported


Spring MVC 사용해서 POST 메소드로 스트링 3개를 서버로 보내는 부분입니다.
계속 "Request method 'POST' not supported" 이 메세지가 뜨면서 진행이 되지 않아 질문드립니다.
어떻게 수정해야 POST 메소드가 작동되게 할 수 있을까요?

Note : imageBase64 의 크기가 커서 GET 메소드를 사용 할 수 없습니다.
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호