IT/스프링(Spring)
[Spring] nested exception is java.lang.IllegalStateException : Current request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest] 문제 해결 방법
프론트에서 form 태그로 이미지 파일을 여러 개를 업로드하여 서버로 보내려고 하니, nested exception is java.lang.IllegalStateException : Current request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest] 이 에러가 발생했다. 이 문제의 원인은 jsp 적용 방법, Resolver 적용 방법, 라이브러리 추가 등을 확인해야 한다. 목차 1. 해결방법 1. 해결방법 이 문제의 해결방법은 정말 다양하다. 아래의 보기처럼 확인해야 하는 것을 기록한다. 1) 라이브러리 추가 파일 업로드를 위해 commons-fileupload.jar 파일을 라이브러리에 넣어놨는지 확인..
2023. 7. 26.
최근댓글