BackgroundPreinitializer is not relevant in native images so it is better to ignore it automatically in order to reduce the footprint in such environment.
Comment From: wilkinsona
@sdeleuze I pulled the introducing of the ENABLED static final field out into a separate commit (https://github.com/spring-projects/spring-boot/commit/85828953bd82ce2e0f1a61847338a1bc32e41241) and then rebased the changes here on top of that (https://github.com/spring-projects/spring-boot/commit/137ce1a9de6087f26357a6829fa6864b948b641a). If you have a moment, please check that I haven't messed anything up from a native image perspective in the process.