从网关前端的微服务获取404

时间:2016-08-26 12:29:02

标签: jhipster

我按照jhipster指令创建了一个微服务架构。我有一个网关,注册表和一个简单的微服务。之后,我调用了网关中的实体子生成器来生成微服务的前端代码。 在这之后,我可以从网关中的Administration-API部分创建/列出/更新微服务资源,但是在“实体”部分(通过前端)我在所有微服务请求中得到404。 3个应用程序在dev配置文件中运行,并且jwt秘密令牌对于所有这些都是相同的:my-secret-token-to-change-in-production。我没有触及配置ymls。

¿可能是什么问题? 404不是安全问题¿不是吗? ¿也许问题是代理?我是代理人的背后。

我关注Julien Dubois视频https://www.youtube.com/watch?v=dOO-8cAKDu8,他只是在网关中重新生成实体,通过“实体”菜单访问前端(分钟33 aprox)。

谢谢!

网关生成器选项:

{
  "generator-jhipster": {
    "jhipsterVersion": "3.6.1",
    "baseName": "testgw",
    "packageName": "com.test.app",
    "packageFolder": "com/test/app",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "hibernateCache": "hazelcast",
    "clusteredHttpSession": "no",
    "websocket": "no",
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "buildTool": "maven",
    "jwtSecretKey": "92bc8dd1e1cb0aacacfebe994abfb472862c512d",
    "useSass": true,
    "applicationType": "gateway",
    "testFrameworks": [
      "gatling",
      "cucumber",
      "protractor"
    ],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "es",
    "languages": [
      "es",
      "en"
    ]
  }
}

微服务生成器选项:

{
  "generator-jhipster": {
    "jhipsterVersion": "3.6.1",
    "baseName": "patient",
    "packageName": "com.test.app",
    "packageFolder": "com/test/app",
    "serverPort": "8081",
    "authenticationType": "jwt",
    "hibernateCache": "hazelcast",
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "buildTool": "maven",
    "jwtSecretKey": "f9e757eb9259f0cfd8886bb08beda392463a4391",
    "enableTranslation": true,
    "applicationType": "microservice",
    "testFrameworks": [
      "gatling",
      "cucumber"
    ],
    "jhiPrefix": "jhi",
    "skipClient": true,
    "skipUserManagement": true,
    "nativeLanguage": "es",
    "languages": [
      "es",
      "en"
    ]
  }
}

0 个答案:

没有答案