Spring Framework 5.3.4 introduces a hard dependency on servlet 4.0. This was removed in https://github.com/spring-projects/spring-framework/issues/26555, and so testing against 5.3.5-SNAPSHOT or higher avoids this issue.