org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath Java Examples
The following examples show how to use
org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActuatorRequestMatcher.java From flowable-engine with Apache License 2.0 | 5 votes |
private String getPathPrefix(WebApplicationContext context) { try { return context.getBean(DispatcherServletPath.class).getPrefix(); } catch (NoSuchBeanDefinitionException ex) { return ""; } }
Example #2
Source File: ServletApplicationFactory.java From spring-boot-admin with Apache License 2.0 | 5 votes |
public ServletApplicationFactory(InstanceProperties instance, ManagementServerProperties management, ServerProperties server, ServletContext servletContext, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint, MetadataContributor metadataContributor, DispatcherServletPath dispatcherServletPath) { super(instance, management, server, pathMappedEndpoints, webEndpoint, metadataContributor); this.servletContext = servletContext; this.server = server; this.management = management; this.instance = instance; this.dispatcherServletPath = dispatcherServletPath; }
Example #3
Source File: SpringBootAdminClientAutoConfiguration.java From spring-boot-admin with Apache License 2.0 | 5 votes |
@Bean @Lazy(false) @ConditionalOnMissingBean public ApplicationFactory applicationFactory(InstanceProperties instance, ManagementServerProperties management, ServerProperties server, ServletContext servletContext, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint, ObjectProvider<List<MetadataContributor>> metadataContributors, DispatcherServletPath dispatcherServletPath) { return new ServletApplicationFactory(instance, management, server, servletContext, pathMappedEndpoints, webEndpoint, new CompositeMetadataContributor(metadataContributors.getIfAvailable(Collections::emptyList)), dispatcherServletPath); }
Example #4
Source File: CustomZuulConfig.java From api-gateway-old with Apache License 2.0 | 4 votes |
@Bean public RouteLocator memoryRouterOperator(ServerProperties server, ZuulProperties zuulProperties, DispatcherServletPath dispatcherServletPath) { return new MemoryRouteLocator(dispatcherServletPath.getPrefix(), zuulProperties); }