From e49a9219aff03f748422e10ad8aa17b0e4b3bf4c Mon Sep 17 00:00:00 2001 From: Matteo Steccolini Date: Thu, 21 Dec 2023 11:54:23 +0100 Subject: [PATCH] servletWebServerFactory definitely breaks things (spring-boot not starting with tomcat, and running as web application doesn't work if the bean is not at least lazy) I'm removing it, it shouldn't be necessary (to run spring-spring boot with jetty, it's enough to enable the jetty profile?) --- src/main/java/ca/uhn/fhir/jpa/starter/Application.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/Application.java b/src/main/java/ca/uhn/fhir/jpa/starter/Application.java index 36a432c..4714aa8 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/Application.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/Application.java @@ -72,10 +72,4 @@ public class Application extends SpringBootServletInitializer { return servletRegistrationBean; } - @Bean - @Lazy - public ServletWebServerFactory servletWebServerFactory() { - return new JettyServletWebServerFactory(); - } - }