The javadoc for the setFallbackPageable method of PageableHandlerMethodArgumentResolverSupport is unclear in two places.
in case no {@link PageableDefault} or {@link PageableDefault} (the latter only supported in legacy mode)
Both options are the same.
If you set this to {@literal Optional#empty()} The method only accepts a non-null Pageable, so it is unclear how to set this to Optional.empty().
Unfortunately I can't propose a fix, because it is not obvious to me what the originally intended message was.