Currently a bug was reported in Spring Boot https://github.com/spring-projects/spring-boot/issues/14484 The resolution we need to model our change after is located here: https://github.com/spring-projects/spring-boot/pull/14933