如何使用非默认 crafter 配置文件 URL 配置 crafter 配置文件客户端和 crafter 配置文件管理控制台?

How do I configure crafter profile client and crafter profile admin console with non-default crafter profile URL?

Crafter 配置文件的默认配置是 http://localhost:8080/crafter-profile,用于 Crafter 配置文件客户端和 Crafter 配置文件管理控制台。我已经在端口 7070 上安装了 Crafter Profile,并在扩展文件夹中更新了以下 属性:

/shared/classes/crafter/engine/extension/server-config.属性

crafter.profile.rest.client.url.base=http://localhost:7070/crafter-profile

但两个实例仍在 8080 端口寻找 crafter-profile。

[WARN] 2017-06-07 13:16:23,158 [ajp-nio-7009-exec-71] [rest.RestTemplate] | GET request for "http://localhost:8080/crafter-profile/api/1/profile/by_ticket.json?accessTokenId=b4d44030-d0af-11e3-9c1a-0800200c

2017-06-07_13:17:11.085 [http-nio-7070-exec-62] WARN o.c.commons.rest.RestTemplate - GET request for "http://localhost:8080/crafter-profile/api/1/tenant/all.json?accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d" resulted in 404 (); invoking error handler

对于 Crafter-Profile-Admin 控制台,属性 (crafter.profile.rest.client.url.base) 应该在此文件中 crafter/profile/management/extension/server-config.properties 在 tomcat 共享文件夹下。

在 spring 上下文中使用 crafter-profile-client 时,您应该确保您的 spring 上下文读取了一个 属性 文件,并覆盖了密钥