← Java / Spring 목차

JAVA-061 / 기초

페이지 크기 상한 없음 (Pageable 무제한)

A04:2021 Insecure Design · CWE-770 Allocation of Resources Without Limits

왜 문제가 될까요?

size=10000000 으로 메모리와 DB가 고갈된다.

이렇게 수정하세요

yaml
spring.data.web.pageable.max-page-size: 100

더 읽기