See suggestion https://github.com/spring-projects/spring-boot/pull/14228#issuecomment-417075397