Class BroadleafBootServletContextInitializer
java.lang.Object
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
org.broadleafcommerce.common.web.boot.support.BroadleafBootServletContextInitializer
- All Implemented Interfaces:
org.springframework.web.WebApplicationInitializer
public abstract class BroadleafBootServletContextInitializer
extends org.springframework.boot.web.servlet.support.SpringBootServletInitializer
Used in conjunction with
SpringBootBootstrappingServletContextListener. Since that class
establishes its own delegate ContextLoaderListener that closes the Spring ApplicationContext we want
to disable the fact that Spring Boot tries to add a ContextLoaderListener.
SPRING-UPGRADE-CHECK
- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
configure, createRootApplicationContext, createSpringApplicationBuilder, deregisterJdbcDrivers, run, setRegisterErrorPageFilter
-
Constructor Details
-
BroadleafBootServletContextInitializer
public BroadleafBootServletContextInitializer()
-
-
Method Details
-
onStartup
public void onStartup(jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException - Specified by:
onStartupin interfaceorg.springframework.web.WebApplicationInitializer- Overrides:
onStartupin classorg.springframework.boot.web.servlet.support.SpringBootServletInitializer- Throws:
jakarta.servlet.ServletException
-