Written by
spring-style
on
on
Maximum upload size exceeded; nested exception is java.lang...
Maximum upload size exceeded; nested exception is java.lang...
Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException: The field pimage exceeds its maximum permitted size of 1048576 bytes
위 오류는 클라이언트 측에서 넘어온 파일을 저장 할려고 할때 저장할 수 있는 최대용량을 설정해주지 않아 default값이 1048576 bytes(1MB)로 설정이 돼서 저장할려고 하는 이미지 파일의 용량이 1048576 bytes 넘어 발생하는 오류입니다. 해결방법은 아래와 같이 application.properties 파일에 용량 설정을 추가하여줍니다.
#application.properties
from http://kdyspring.tistory.com/40 by ccl(A) rewrite - 2021-12-20 19:01:19