From 560527945bdb158014d05daea57c09565cc7b016 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 3 Oct 2023 17:28:44 -0700 Subject: [PATCH] Add background preinitializers for Tomcat and JDK ZoneId Closes gh-37670 --- .../BackgroundPreinitializer.java | 24 +++++++++++++++++++ 1 file changed, 24 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 06a0f557df..d64b0763fa 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 @@ -17,11 +17,14 @@ package org.springframework.boot.autoconfigure; import java.nio.charset.StandardCharsets; +import java.time.ZoneId; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; import jakarta.validation.Configuration; import jakarta.validation.Validation; +import org.apache.catalina.authenticator.NonLoginAuthenticator; +import org.apache.tomcat.util.http.Rfc6265CookieProcessor; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.context.event.ApplicationFailedEvent; @@ -107,6 +110,8 @@ public class BackgroundPreinitializer implements ApplicationListener