@Configuration @AutoConfigureBefore(value=org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class) @ConditionalOnClass(value=org.springframework.boot.web.servlet.ServletContextInitializer.class) @EnableConfigurationProperties(value=VaadinConfigurationProperties.class) @Import(value=VaadinServletConfiguration.class) public class SpringBootAutoConfiguration extends Object
| Constructor and Description |
|---|
SpringBootAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.web.servlet.ServletContextInitializer |
contextInitializer()
Creates a
ServletContextInitializer instance. |
org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet> |
dispatcherServletRegistration()
Creates a
ServletRegistrationBean instance for a dispatcher
servlet in case Vaadin servlet is mapped to the root. |
org.springframework.boot.web.servlet.ServletRegistrationBean<SpringServlet> |
servletRegistrationBean()
Creates a
ServletRegistrationBean instance with Spring aware
Vaadin servlet. |
org.springframework.web.socket.server.standard.ServerEndpointExporter |
websocketEndpointDeployer()
Deploys JSR-356 websocket endpoints when Atmosphere is available.
|
@Bean public org.springframework.boot.web.servlet.ServletContextInitializer contextInitializer()
ServletContextInitializer instance.@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<SpringServlet> servletRegistrationBean()
ServletRegistrationBean instance with Spring aware
Vaadin servlet.@Bean @Conditional(value=RootMappedCondition.class) public org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet> dispatcherServletRegistration()
ServletRegistrationBean instance for a dispatcher
servlet in case Vaadin servlet is mapped to the root.
This is needed for correct servlet path (and path info) values available in Vaadin servlet because it works via forwarding controller which is not properly mapped without this registration.
@Bean public org.springframework.web.socket.server.standard.ServerEndpointExporter websocketEndpointDeployer()
Copyright © 2018 Vaadin Ltd. All Rights Reserved.