com.vaadin.flow.spring.
Class VaadinServletConfiguration
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) Deprecated, for removal: This API element is subject to removal in a future version.
vaadinRootMapping
(org.springframework.core.env.Environment environment, org.springframework.web.servlet.HandlerMapping resourceHandlerMapping) 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
@Deprecated(forRemoval=true, since="24.8") public VaadinServletConfiguration.RootExcludeHandler vaadinRootMapping(org.springframework.core.env.Environment environment) Deprecated, for removal: This API element is subject to removal in a future version.usevaadinRootMapping(Environment, HandlerMapping)
instead.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
-
vaadinRootMapping
@Bean public VaadinServletConfiguration.RootExcludeHandler vaadinRootMapping(org.springframework.core.env.Environment environment, @Autowired(required=false) @Qualifier("resourceHandlerMapping") org.springframework.web.servlet.HandlerMapping resourceHandlerMapping) 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
-
vaadinRootMapping(Environment, HandlerMapping)
instead.