We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.spring.
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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
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 a
DispatcherServlet
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 a
DispatcherServlet
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
-