【问题标题】:Jhipster 4.6.2 MicroservicesJhipster 4.6.2 微服务
【发布时间】:2017-08-03 06:49:55
【问题描述】:

我创建了一个带有实体的“客户”微服务

然后我在网关中创建相同的实体:

Do you want to generate this entity from an existing microservice? Y

我创建了所有的 html 和 js。我看到的是Angular服务直接进入微服务。

  private resourceUrl = 'customer/api/customer-xxx';

我不应该调用我的网关并转向微服务吗?

谢谢。

【问题讨论】:

    标签: jhipster


    【解决方案1】:

    /api/customer-xxx是你的微服务的API端点,/customer/api/customer-xxx是网关暴露的API端点,它以应用名称为前缀,代理对微服务端点的请求。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-26
      • 2018-01-02
      • 2016-11-22
      • 1970-01-01
      • 2018-03-29
      • 2018-12-10
      • 2018-08-06
      • 2017-07-12
      相关资源
      最近更新 更多