Originally raised in https://github.com/spring-projects/spring-boot/issues/48048 with a reproducer.
I suspect the issue is that DefaultWebTestClient has a JsonPathConfigurationProvider.getConfiguration method that is used in jsonPath where as RestTestClient does not.