3

Crafter Profile的默认配置是http://localhost:8080/crafter-profile,用于 Crafter Profile Client 和 Crafter Profile Admin Console。我在端口 7070 上安装了 Crafter Profile 并更新了扩展文件夹中的以下属性:

/shared/classes/crafter/engine/extension/server-config.properties

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

但是这两个实例仍在端口 8080 上寻找工匠配置文件。

[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

4

1 回答 1

4

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

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

于 2017-06-07T21:26:34.303 回答