Package com.vaadin.flow.spring
Class VaadinServletConfiguration
java.lang.Object
com.vaadin.flow.spring.VaadinServletConfiguration
@Configuration
@Conditional(RootMappedCondition.class)
public class VaadinServletConfiguration
extends Object
Vaadin servlet configuration.
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.
- Author:
- Vaadin Ltd
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.mvc.Controller
Makes a forwarding controller.vaadinRootMapping
(org.springframework.core.env.Environment environment) Makes an url handler mapping allowing to forward requests from aDispatcherServlet
toVaadinServlet
.
-
Field Details
-
EXCLUDED_URLS_PROPERTY
- See Also:
-
-
Constructor Details
-
VaadinServletConfiguration
public VaadinServletConfiguration()
-
-
Method Details
-
vaadinRootMapping
@Bean public VaadinServletConfiguration.RootExcludeHandler vaadinRootMapping(org.springframework.core.env.Environment environment) Makes an url handler mapping allowing to forward requests from aDispatcherServlet
toVaadinServlet
.- Returns:
- an url handler mapping instance which forwards requests to vaadin servlet
-
vaadinForwardingController
@Bean public org.springframework.web.servlet.mvc.Controller vaadinForwardingController()Makes a forwarding controller.- Returns:
- a forwarding controller
-