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
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCLUDED_URLS_PROPERTY
-
Constructor Summary
Constructors Constructor Description VaadinServletConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.mvc.ControllervaadinForwardingController()Makes a forwarding controller.com.vaadin.flow.spring.VaadinServletConfiguration.RootExcludeHandlervaadinRootMapping(org.springframework.core.env.Environment environment)Makes an url handler mapping allowing to forward requests from aDispatcherServlettoVaadinServlet.
-
-
-
Field Detail
-
EXCLUDED_URLS_PROPERTY
public static final String EXCLUDED_URLS_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
vaadinRootMapping
@Bean public com.vaadin.flow.spring.VaadinServletConfiguration.RootExcludeHandler vaadinRootMapping(org.springframework.core.env.Environment environment)
Makes an url handler mapping allowing to forward requests from aDispatcherServlettoVaadinServlet.- 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
-
-