As Deinum indicates in his answer, it is currently not possible, but Spring developers are already looking into how to fix it.
Please note that it will be removed from Spring Boot 3.6 release onwards.