Crafter Profile Client和Crafter Profile Admin Console的Crafter配置文件的默认配置为http://localhost:8080/crafter-profile。我在端口7070上安装了Crafter Profile并更新了扩展文件夹中的以下属性:
/shared/classes/crafter/engine/extension/server-config.properties
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
答案 0 :(得分:4)
对于Crafter-Profile-Admin控制台,属性(crafter.profile.rest.client.url.base
)应该在此文件中
tomcat共享文件夹下的crafter/profile/management/extension/server-config.properties
。
在spring上下文中使用crafter-profile-client时,应确保spring上下文读取属性文件并覆盖该键