Jhipster Gateway Zuul路线

时间:2019-03-25 10:20:11

标签: jhipster netflix-zuul jhipster-registry

您好,我正在按以下方式添加zuul路由,以便在jhipster网关中注册,并且成功。

routes:
    myhost:
        path: /greeting/**
        url: http://localhost:8080

但是,它会在注册后按如下所示附加网址。

http://localhost:8282/greeting/greeting

我期望http://localhost:8282/myhost/greeting/

我应该在zuul路由下传递什么值来获取上述网址。提前致谢。

1 个答案:

答案 0 :(得分:0)

我为路径分配了空值。现在,网址已按预期生成

相关问题