public abstract class VaadinMVCWebAppInitializer extends Object implements org.springframework.web.WebApplicationInitializer
WebApplicationInitializer.
Extend this class in your Spring MVC application and provide your
configuration classes via the getConfigurationClasses() method.
| Constructor and Description |
|---|
VaadinMVCWebAppInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<Class<?>> |
getConfigurationClasses()
Gets the application configuration classes.
|
void |
onStartup(javax.servlet.ServletContext servletContext) |
protected void |
registerConfiguration(org.springframework.web.context.support.AnnotationConfigWebApplicationContext context)
Registers application configuration classes.
|
public void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
onStartup in interface org.springframework.web.WebApplicationInitializerjavax.servlet.ServletExceptionprotected void registerConfiguration(org.springframework.web.context.support.AnnotationConfigWebApplicationContext context)
Uses developer defined configuration classes via the
getConfigurationClasses() method. Also register Vaadin
configuration from the add-on.
Override this method if you want to register configuration classes in a
totally different way or just provide implementation for
getConfigurationClasses() method.
context - web application context, not nullgetConfigurationClasses()protected abstract Collection<Class<?>> getConfigurationClasses()
Copyright © 2025 Vaadin Ltd. All Rights Reserved.