Table of Contents
@EnableSpringDataWebSupport
스프링 부트 3.3 버전부터 새로운 경고 문구가 발생한다.
2026-02-02T11:22:48.825+09:00 WARN 14500 --- [xxxxxx] [nio-9000-exec-6] ration$PageModule$WarningLoggingModifier : Serializing PageImpl instances as-is is not supported, meaning that there is no guarantee about the stability of the resulting JSON structure!
For a stable JSON structure, please use Spring Data's PagedModel (globally via @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO))
or Spring HATEOAS and Spring Data's PagedResourcesAssembler as documented in https://docs.spring.io/spring-data/commons/reference/repositories/core-extensions.html#core.web.pageables.
간단히 말해서 PageImpl 의 반환값이 언제든 변경될 수 있으니 조치를 취하란 의미이다.
@Configuration
@EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO)
public class WebConfig {
}
위 파일을 추가해주면 된다.

위 반환값이 아래처럼 간소화된다.
