Open Jo-wonbin opened 8 months ago
application.yml 파일에 설정을 넣어주었다.
spring: servlet: multipart: max-file-size: 1GB max-request-size: 1GB
server: tomcat: max-http-form-post-size: 1GB
구글에 검색해보면 multipart 설정과 tomcat 설정 둘 중에 하나만 나와있는 경우가 많은데, 두 설정 모두 적용하는 것을 권장하는 의견들이 있어서 두 설정을 모두 적용하였다.
12
특정 크기 이상의 파일을 요청하면 FileSizeLimitExceededException 에러가 발생
해결 방법
application.yml 파일에 설정을 넣어주었다.
server: tomcat: max-http-form-post-size: 1GB