@Configuration @Conditional(value=RootMappedCondition.class) public class VaadinServletConfiguration extends Object
The configuration is used only when the Vaadin servlet is mapped to the root ("/*") because in this case the servlet is mapped to "/vaadinServlet/*" instead of ("/*"). It's done to make possible to configure other Spring services (like endpoints) which have overlapping path.
| Constructor and Description |
|---|
VaadinServletConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.mvc.Controller |
vaadinForwardingController()
Makes a forwarding controller.
|
org.springframework.web.servlet.handler.SimpleUrlHandlerMapping |
vaadinRootMapping()
Makes an url handler mapping allowing to forward requests from a
DispatcherServlet to VaadinServlet. |
@Bean public org.springframework.web.servlet.handler.SimpleUrlHandlerMapping vaadinRootMapping()
DispatcherServlet to VaadinServlet.@Bean public org.springframework.web.servlet.mvc.Controller vaadinForwardingController()
Copyright © 2021 Vaadin Ltd. All Rights Reserved.