See https://github.com/spring-projects/spring-boot/pull/6770#issuecomment-242995665