Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services JHipster网关未将请求路由到微服务_Amazon Web Services_Jhipster_Netflix Zuul_Jhipster Registry - Fatal编程技术网

Amazon web services JHipster网关未将请求路由到微服务

Amazon web services JHipster网关未将请求路由到微服务,amazon-web-services,jhipster,netflix-zuul,jhipster-registry,Amazon Web Services,Jhipster,Netflix Zuul,Jhipster Registry,我根据文档部署了JHipster微服务体系结构。每个组件都位于一个AWS实例中。我正在使用v5.3.4版 我可以看到注册在注册表上的微服务和网关 此外,微服务已经启动,我可以看到欢迎页面 最后,在网关中列出了服务器 但是,当我试图在网关中查看Swagger文档或通过网关URL访问微服务时,我会感到非常不安 可能遗漏什么 更新:: 我在任何日志中都没有看到错误,但我看到以下警告: 2018-09-25 15:14:37.584 WARN 1601 --- [ restartedMain

我根据文档部署了JHipster微服务体系结构。每个组件都位于一个AWS实例中。我正在使用v5.3.4版

我可以看到注册在注册表上的微服务和网关

此外,微服务已经启动,我可以看到欢迎页面

最后,在网关中列出了服务器

但是,当我试图在网关中查看Swagger文档或通过网关URL访问微服务时,我会感到非常不安

可能遗漏什么

更新::

我在任何日志中都没有看到错误,但我看到以下警告:

2018-09-25 15:14:37.584  WARN 1601 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
此外,我多次看到以下信息。这让我很困惑,如果我不添加新的端点,为什么它显然每分钟都会记录这些

2018-09-26 11:14:25.331  INFO 2319 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver      : Resolving eureka endpoints via configuration

这个问题的答案是更改config/application-prod.yml上的compression参数

应该是:

服务器: 压缩:
enabled:false

您好,谢谢您的及时回答。最奇怪的消息是:2018-09-25 15:14:37.584 WARN 1601---[restartedMain]c.n.c.sources.URLConfigurationSource:没有URL会被轮询为动态配置源。m、 m.a.ExceptionHandlerExceptionResolver:已解决[org.springframework.security.authentication.UnficientAuthenticationException:访问此资源需要完全身份验证]2018-09-26 10:24:25.325信息2319---[trap-executor-0]c.n.d.s.r.aws.ConfigClusterResolver:通过配置解析eureka端点您是否在网关的application-prod.yml中配置了zuul路由?在注册表上,您使用的是本机配置源还是git配置源?在您的配置源中,您是否为您的服务和网关创建了yaml文件?嗨,盖尔,1-我没有。据我了解,注册处将添加路由。我应该添加路由2吗?我使用了Github发行版中的注册表。我不确定。我有application.yml和boostrap.yml,我唯一的更改是指向注册表。Gael,我使用了以下命令:./jhipster registry-.war--spring.security.user.password=admin--jhipster.security.authentication.jwt.secret=secret key--spring.cloud.config.server.composite[0]。type=native----spring.cloud.config.server.composite[0].search locations=文件:./central配置基于详细信息(prod、swagger、microservices),我猜它与此问题有关: