【问题标题】:How do I configure crafter profile client and crafter profile admin console with non-default crafter profile URL?如何使用非默认的工匠配置文件 URL 配置工匠配置文件客户端和工匠配置文件管理控制台?
【发布时间】:2017-06-07 17:18:20
【问题描述】:

Crafter Profile 客户端和 Crafter Profile 管理控制台的默认配置为 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 上寻找工匠配置文件。

[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-cms


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-07
      • 2018-02-21
      • 2014-12-15
      • 2014-01-15
      • 2020-03-13
      • 2016-04-10
      • 2013-03-04
      • 2011-05-24
      相关资源
      最近更新 更多