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?)
This commit is contained in:
Matteo Steccolini
2023-12-21 11:54:23 +01:00
parent eafa7cfb4c
commit e49a9219af

View File

@@ -72,10 +72,4 @@ public class Application extends SpringBootServletInitializer {
return servletRegistrationBean; return servletRegistrationBean;
} }
@Bean
@Lazy
public ServletWebServerFactory servletWebServerFactory() {
return new JettyServletWebServerFactory();
}
} }