๐ŸšจResolved [org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded]

๋ฐ•์šฉ๋ฏผยท2024๋…„ 3์›” 7์ผ
0

๋™์˜์ƒ์„ S3์— ์—…๋กœ๋“œ ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜์˜€๋‹ค.

Resolved [org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded]

ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์„œ๋ฒ„๋กœ ์ „์†กํ•˜๋ ค๋Š” ํŒŒ์ผํ‚ˆ ํฌ๊ธฐ๊ฐ€ ์„œ๋ฒ„์—์„œ ํ—ˆ์šฉํ•˜๋Š” ์ตœ๋Œ€ ์—…๋กœ๋“œ ํฌ๊ธฐ๋ฅผ ์ดˆ๊ณผํ–ˆ์„๋•Œ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ์ด๋‹ค.

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ•œ๋‹ค.

// application.properties
spring.servlet.multipart.maxFileSize = [size]
spring.servlet.multipart.maxRequestSize = [size]

spring.servlet.multipart.maxFileSize๋Š” ์—…๋กœ๋“œํ•˜๋Š” ๊ฐ ํŒŒ์ผ์˜ ์ตœ๋Œ€ ํฌ๊ธฐ๋ฅผ ์˜๋ฏธํ•œ๋‹ค.
spring.servlet.multipart.maxRequestSize๋Š” ์š”์ฒญ์œผ๋กœ ๋ณด๋‚ผ ์ˆ˜ ์žˆ๋Š” ์ตœ๋Œ€ ์š”์ฒญ์˜ ํฌ๊ธฐ๋ฅผ ์˜๋ฏธํ•œ๋‹ค.

๐ŸŽ‰DONE

0๊ฐœ์˜ ๋Œ“๊ธ€