Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 무결성
- Java
- NPM
- jsx
- 공개키암호시스템
- mybatis
- 대칭키암호시스템
- 대칭키암호화
- 전자서명
- node.js
- c:choose
- 동적쿼리
- 대칭키알고리즘
- c:forEach
- jQuery
- SQL
- vscode
- Spring
- JavaScript
- MySQL
- 암호학
- JSTL
- 해시함수
- C#크롤링
- fullcalendar
- 서드파티모듈
- react
- RequestMethod.POST
- 국제화
- AndroidStudio
Archives
- Today
- Total
Today Yewon Learned
[Spring] Request method 'POST' not supported 오류 해결 본문
Ajax통신을 통해 POST방식으로 데이터를 보내기를 시도하였으나, 아래와 같은 오류가 발생했다.
Handler execution resulted in exception -
forwarding to resolved error view: ModelAndView: reference to view with name 'cmmn/egovError';
model is {exception=org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported}
POST 방식을 지원하지 않는다는 의미이다.
해당 url을 매핑하는 @RequestMapping을 확인하니, RequestMethod.GET 방식으로 되어 있었다.
@RequestMapping(value="test.do", method = {RequestMethod.GET})
RequestMethod.POST 을 추가해주면 오류 해결이 된다.
@RequestMapping(value="test.do", method = {RequestMethod.GET, RequestMethod.POST})'Spring' 카테고리의 다른 글
| [Spring] MVC (Model-View-Controller) Pattern (0) | 2021.11.25 |
|---|---|
| [Spring] @RequestMapping의 GET/POST 요청 (0) | 2021.11.19 |
| [Spring] Spring Annotation (0) | 2021.11.09 |
Comments