-
0 votesanswersviews
TCP中的Eureka Server
当我创建服务发现服务器时,它自动设置为HTTP @EnableEurekaServer @SpringBootApplication public class DiscoveryServerApplication { public static void main(String[] args) { SpringApplication.run(DiscoveryServerApplicat... -
1 votesanswersviews
升级Swagger打破了Spring Cloud(Eureka,Zuul,Ribbon)
我有两个Spring Boot应用程序,一个用作另一个的反向代理 . 我正在使用Spring Boot(1.4.1.RELEASE),Spring Cloud(Camden.SR1) . 我使用的是Swagger 2.5.0,一切都按预期工作 . 我的BootA应用程序托管了Eureka Server并包含Zuul映射,成功地将收到的请求转发到BootB应用程序 . 但是,如果我将Swagger升... -
0 votesanswersviews
使用eureka访问lb:// url时,LoadBalancerClientFilter上的Spring Cloud Gateway NullPointerException
我试图使用Spring -cloud网关与spring boot 2.0.0.RC1和springCloudVersion = 'Finchley.M5' . 我在LoadBalancerClientFilter上得到NullPointerException ..示例代码可以在https://github.com/jaysara/spring-cloud-gateway-example找到 该代码... -
0 votesanswersviews
Eureka-client尝试注册到eureka服务器的随机serviceUrl
使用'Dalston.BUILD-SNAPSHOT'来实现spring-cloud-dependencies,使用spring boot'1.5.2.RELEASE' . 在我目前的设置中,我有 eureka服务器配置服务器(在随机端口上运行) localhost上的Eureka服务器使用以下配置运行 . server: port: 8761 spring: application: ... -
4 votesanswersviews
Spring Cloud Config Server无法使用Docker撰写
我有一个spring cloud配置服务器并将其打包为docker图像然后我有spring spring eureka服务器,它也打包为docker image . 当我使用docker compose运行两个时,我得到以下错误 . discovery-service_1 | 2017-06-24 15:36:12.059 INFO 5 --- [ main] c.c.c.ConfigServic... -
0 votesanswersviews
Spring Cloud Discrovery Eureka - 返回Localhost而不是它所在的主机名
我正在使用Spring Cloud Eureka Server和Config Server作为Discovery First,我的问题是: 当它在eureka服务器中自带的服务注册表时,它返回的配置服务器URL是 http://}:8888 的 http://LOCALHOST:8888 ,并且在其他服务器中托管的所有其他服务都无法找到其配置 . 日志行: 从服务器获取配置:http:// lo... -
0 votesanswersviews
Spring Cloud 发现首先根本不起作用
我尝试使用eureka服务注册表,配置服务器和客户端微服务实现spring cloud netflix项目 . 我使用spring cloud finchley发布 . 我有两个问题:1 . Eureka和配置服务器都在运行,但不能互相识别 . 我已阅读官方docs和多个教程,但它不起作用 . 这是我的代码: ConfigServerApplication: import org.springfr... -
-1 votesanswersviews
Spring引导,Eureka服务器,IBM WAS:logback提供NoClassDefFoundError ch.qos.logback.classic.spi.ThrowableProxy
在使用jdk 8在IBM Websphere Application Server(8.5.5.9)上启动Spring启动应用程序(Eureka服务器)(尝试:1.4.0,1.3.7,1.3.6)时出现问题,它会引发以下异常: [8/22/16 14:04:02:483 GMT+02:00] 00000098 SystemErr R com.ibm.ws.exception.Runtime... -
4 votesanswersviews
Eureka服务器无法使用Spring Boot 2.0.0.M4
我尝试将基于微服务的Web应用程序从Spring Boot 2.0.0.M3更新到最新的2.0.0.M4 . 运行我的Eureka服务器时,我遇到以下异常,并且不会加载上下文: 2017-09-19 10:22:05.455 INFO 16388 --- [ main] o.s.core.annotation.AnnotationUtils : Failed to ... -
0 votesanswersviews
如何使用2.0.0.M4版本配置Spring Cloud Turbine Stream和Spring Boot Actuator?
我有以下配置: @EnableTurbineStream @EnableDiscoveryClient @SpringBootApplication public class SquintTurbineServerApplication { public static void main(final String... args) { SpringApplication.run... -
0 votesanswersviews
在Google Cloud中集群Eureka服务器
我们使用Spring Cloud Netflix Eureka进行服务注册 . 我们将在GCP(Google Cloud)中部署所有微服务 . Environment 我们将Eureka服务器作为集群运行 . Eureka Server将自己注册为application.properties中对等体的客户端 eureka.client.service-url.default-zone... -
0 votesanswersviews
SpringBoot App在Brixton SR3中使用Eureka注册UNKNOWN
我正在运行Spring Cloud Brixton SR3 - Spring Netflix Eureka,Spring Cloud Config和Discovery Client应用程序 . 配置客户端应用程序时 eureka.client.healthcheck.enabled=true 和 spring.cloud.config.discovery.enabled=true 该应用程序启... -
1 votesanswersviews
Spring 天zuul eureka路线代表团
我正在使用Spring Cloud Zuul Eureka Server . 我知道Zuul会在Eureka上注册服务时动态创建路由,并且它将使用他们的服务ID进行路由 . 是否可以将路由委托给组服务? 例如,我有2个服务,我想分组: server.port=8081 spring.application.name=company-account-api server.port=8082 spr... -
2 votesanswersviews
Eureka和Ribbon是否适用于非 spring 靴应用?
我正在重写一个Spring MVC系统 . 系统就像这样简单: [Gateway<->Backend Services<->Databases] ,其中Gateway是一个控制器,仅用于身份验证并将请求转发给后端服务 . 后端服务将重构为微服务 . 我将使用Eureka服务为每个人进行注册 . 所以最终架构将是: [Gateway <-> Eureka <... -
0 votesanswersviews
功能区无法连接到PCF上的Eureka解析的服务
我有一个服务 owner-consumer-service ,它与另一个服务 owner-service 对话 . 我正在使用Eureka服务器进行服务注册 . owner-consumer-service 具有带有 @LoadBalanced 注释的 RestTemplate . RestTemplate调用 owner-service 并返回响应 . 我正在使用尤里卡丝带 . 在本地机器上... -
0 votesanswersviews
使用Spring Cloud Netflix OSS加载 balancer 微服务
我有一个使用Spring Boot和Netflix OSS构建的微服务 . 我使用了中央配置服务器,Eureka和Zuul . 由于可伸缩性,多个服务实例在不同的端口上运行 . 所有实例都在Eureka中注册,但请求仅限于最后注册的服务器 . 如何加载 balancer 服务 . 我应该在Zuul中使用色带来实现负载 balancer 吗?请告诉我如何在多个实例上运行的同一服务上实现负载 bala... -
4 votesanswersviews
Spring Cloud Zuul API网关不会为无状态会话转发JWT令牌
我正在尝试使用 Spring Boot 1.5.6.RELEASE 和 Spring Cloud Dalston.SR3 实现微服务架构后端,这将由移动/ Web endpoints 使用 . API网关应用程序 @SpringBootApplicatio @EnableEurekaClient @EnableZuulProxy public class GatewayApplication { ... -
2 votesanswersviews
Spring Cloud Zuul通过JWT下游
我已经阅读了很多围绕这个的问题,但似乎没有一个类似于我已经拥有JWT的边缘情况 . 我在我的前端使用Auth0(注意auth-zero,而不是Oauth)来获得一个JWT,它为我的后端加载了范围和身份验证 . 当我登录到我的前端客户端时,我得到了一个带有access_token的JWT . 如果我复制该令牌,我可以向我的后端微服务发出直接卷曲请求 curl -X GET -H "Auth... -
0 votesanswersviews
如何让zuul代理处理cors?
我在微服务背后有几个微服务,充当zuul代理 . 当从域外调用时,微服务返回“403-无效的Cors” . 通过将以下内容添加到 each 微服务中来解决此问题: @Configuration public class CorsConfig extends WebMvcConfigurerAdapter { @Override public void addCorsMappings(CorsRe... -
0 votesanswersviews
如何消除Eureka Dashboard上的Eureka警告信息?
如何在Eureka服务器dashbaord上消除以下消息?它会对我的服务造成任何问题吗? 紧急!当EUREKA不是时,EUREKA可能会不正当地提出申请 . 更新的数量超过了阈值,并且这些实际情况并未到期,只是为了安全起见 . 谢谢 . -
1 votesanswersviews
如何在Spring Cloud Netflix eureka上注册spring boot微服务?
我们计划使用Spring Cloud Netflix oss组件 . 所以我做了一个小样本项目 . 我开发了2个 spring 微服务,这些服务运行良好http://localhost:9000/microsvc-one http://localhost:9001/microsvc-two 并且还写了一个样本spring cloud etflix eureka maven项目,该项目在http:/... -
0 votesanswersviews
如何在独立HTTPS中配置Spring Cloud Eureka
我之前曾在HTTP(非SSL)中多次使用过Eureka . 但是,我试图在独立模式下配置Eureka服务器 . 不幸的是,服务器似乎无法注册自己 . 客户端应用程序能够无问题地注册 . 服务器尝试连接到http而不是https (使用org.springframework.cloud:spring-cloud-starter-parent:Dalston.SR1) 这是我的Eureka Serve... -
0 votesanswersviews
使用已知的主机名保护Eureka Registry中的注册
我们在我们的环境中使用Spring Boot和Spring Cloud Netflix . 我们在Eureka Service Registry注册服务作为eureka客户 . 我想知道如何通过应用类似策略的东西来保护Eureka Registry,以允许仅从来自某些已知主机名的服务进行注册 . 我不确定Spring Cloud Netflix Eureka是否为我的要求提供了开箱即用的东西 . ... -
4 votesanswersviews
Spring Cloud 配置客户端属性未得到解决
我对Spring Cloud和Spring外部配置的概念很陌生,实际上是昨天开始的 . 我创建了一个Config Server从本地Git存储库中挑选配置,一个微服务也是配置客户端和一个Eureka驱动的服务发现服务器 . 以下是我主要从互联网上的各种资源中借用的代码 - 配置服务器 - application.yml: server: port: 8888 spring: cloud... -
0 votesanswersviews
Zipkin客户端报告到服务器被阻止401错误代码
我正在使用spring-cloud-starter-zipkin .但客户端无法向zipkin服务器报告,当我成功通过curl手动连接时,它被401错误代码阻止 . 这是我的服务器配置: server: port: 9000 spring: rabbitmq: host: rabbitmq port: 5672 username: xxx password... -
2 votesanswersviews
我可以动态创建Feign客户端或创建具有不同名称的实例
我已经定义了一个REST接口,它具有不同的Spring Boot Application实现,使用不同的 spring.application.name ( spring.application.name 在我的业务中不能相同) . 我怎样才能定义Feign Client,并且可以访问所有SpringBootApplication REST服务? SpringBootApplication A(s... -
2 votesanswersviews
根据环境定义不同的Feign客户端实现
我有一个Spring启动应用程序,它使用Feign通过Eureka调用外部Web服务 . 我希望能够使用模拟的Feign接口实现来运行应用程序,因此我可以在本地运行应用程序而无需运行Eureka或外部Web服务 . 我曾经想象过定义一个允许我这样做的运行配置,但我很难让它运行起来 . 问题是,无论我尝试什么,Spring“魔法”都会为Feign界面定义一个bean . Feign interfac... -
7 votesanswersviews
Spring Cloud Config Server
我正在使用Spring Cloud Config Server并能够检测来自git存储库的更改并将其传递给Config客户端 . 有两种方法,我已经实现了它: 在git存储库中进行更改(提交和推送)后,我创建了一个curl请求curl -X POST http://server:port/bus/refresh并且它工作正常 . 为此,我使用RabbitMQ作为Spring Cloud Bus ... -
1 votesanswersviews
Spring Cloud Config Eureka Zuul - 没有在客户端看到房产
我正在使用Spring Cloud开发一个基于微服务的arhitecture的应用程序 . 我目前在项目中有四个应用程序: config-server , eureka-server , gateway-service(zuul) 和 eureka-client 我正在使用它来测试项目是否按预期工作 . 但我从配置服务器获取属性时遇到问题 . 我有一个git存储库,其中有一个文件 eureka-c... -
1 votesanswersviews
当以发现方式配置spring cloud配置服务器时,为什么必须在`bootstrap.properties`中提供eureka.client.serviceUrl.defaultZone?
我的目标是通过在 application.properties 中设置 spring.applicaton.name 和 server.port 和 eureka.client.serviceUrl.defaultZone 以及 bootstrap.properties 中的 spring.cloud.config.discovery.enabled=true 和 spring.cloud.con...