• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DiscoveryClientRouteLocator类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.springframework.cloud.netflix.zuul.filters.discovery.DiscoveryClientRouteLocator的典型用法代码示例。如果您正苦于以下问题:Java DiscoveryClientRouteLocator类的具体用法?Java DiscoveryClientRouteLocator怎么用?Java DiscoveryClientRouteLocator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DiscoveryClientRouteLocator类属于org.springframework.cloud.netflix.zuul.filters.discovery包,在下文中一共展示了DiscoveryClientRouteLocator类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: discoveryRouteLocator

点赞 2

import org.springframework.cloud.netflix.zuul.filters.discovery.DiscoveryClientRouteLocator; //导入依赖的package包/类
@Bean
@Override
@ConditionalOnMissingBean(RouteLocator.class)
public DiscoveryClientRouteLocator discoveryRouteLocator() {
  return new StoreProxyRouteLocator(server.getServletPath(), discovery, zuulProperties,
      zuulRouteStore);
}
 

开发者ID:venus-boot,
项目名称:saluki,
代码行数:8,
代码来源:ZuulProxyStoreConfiguration.java

示例2: init

点赞 2

import org.springframework.cloud.netflix.zuul.filters.discovery.DiscoveryClientRouteLocator; //导入依赖的package包/类
@Before
public void init() {
	initMocks(this);
	this.properties = new ZuulProperties();
	this.routeLocator = new DiscoveryClientRouteLocator("/", this.discovery,
			this.properties);
	this.filter = new PreDecorationFilter(this.routeLocator, "/", this.properties,
			this.proxyRequestHelper);
	RequestContext ctx = RequestContext.getCurrentContext();
	ctx.clear();
	ctx.setRequest(this.request);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:13,
代码来源:PreDecorationFilterTests.java

示例3: grpcRemoteApiFilter

点赞 2

import org.springframework.cloud.netflix.zuul.filters.discovery.DiscoveryClientRouteLocator; //导入依赖的package包/类
@Bean
public GrpcRemoteRouteFilter grpcRemoteApiFilter(DiscoveryClientRouteLocator routeLocator) {
  return new GrpcRemoteRouteFilter(grpcRemoteComponent, (StoreProxyRouteLocator) routeLocator);
}
 

开发者ID:venus-boot,
项目名称:saluki,
代码行数:5,
代码来源:ZuulProxyStoreConfiguration.java

示例4: discoveryRouteLocator

点赞 2

import org.springframework.cloud.netflix.zuul.filters.discovery.DiscoveryClientRouteLocator; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(DiscoveryClientRouteLocator.class)
public DiscoveryClientRouteLocator discoveryRouteLocator() {
	return new DiscoveryClientRouteLocator(this.server.getServlet().getServletPrefix(), this.discovery, this.zuulProperties,
			this.serviceRouteMapper, this.registration);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:7,
代码来源:ZuulProxyAutoConfiguration.java

示例5: discoveryRouteLocator

点赞 2

import org.springframework.cloud.netflix.zuul.filters.discovery.DiscoveryClientRouteLocator; //导入依赖的package包/类
@Bean
public DiscoveryClientRouteLocator discoveryRouteLocator(
		DiscoveryClient discoveryClient,
		ZuulProperties zuulProperties) {
	return new MyRouteLocator("/", discoveryClient, zuulProperties);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:7,
代码来源:RestClientRibbonCommandIntegrationTests.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)