From 66bf684eb6d8d83266fc266648bb157ca19d4b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Fri, 17 Jul 2020 14:57:14 +0200 Subject: [PATCH] Ignore BackgroundPreinitializer in native images BackgroundPreinitializer is not relevant in native images so it is better to ignore it automatically in order to reduce the footprint in such environment. See gh-22392 --- .../boot/autoconfigure/BackgroundPreinitializer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java index cceff6b59bd..8d9df658e25 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java @@ -45,6 +45,7 @@ import org.springframework.http.converter.support.AllEncompassingFormHttpMessage * @author Phillip Webb * @author Andy Wilkinson * @author Artsiom Yudovin + * @author Sebastien Deleuze * @since 1.3.0 */ @Order(LoggingApplicationListener.DEFAULT_ORDER + 1) @@ -67,6 +68,7 @@ public class BackgroundPreinitializer implements ApplicationListener 1; }