Comment From: snicoll

Similar to https://github.com/spring-projects/spring-boot/issues/27181#issuecomment-876159141