【问题标题】:Jhipster: Context-path change showing errors in Administration sectionJhipster:上下文路径更改在管理部分显示错误
【发布时间】:2020-05-14 15:20:52
【问题描述】:

我在我的 jHipster 应用程序中更改了上下文路径 资源/配置/application.yml server.servlet.contextPath: /myContext

在这些更改之后,jHipster 生成的 UI 无法从管理部分进行 API 调用。 jhipsterVersion": "6.8.0"

【问题讨论】:

    标签: java spring-boot jhipster


    【解决方案1】:

    经过几天的研究和调试,终于找到了解决方案,所以如果您使用的是 Jhipster 6.8,因为我已将默认上下文更改为自定义上下文,您需要在 webpack.common 中更改相同的内容。 jsnew BaseHrefWebpackPlugin({ baseHref: '/myContext/' }),。 它会为你施展魔法。

    干杯!!!

    【讨论】:

      猜你喜欢
      • 2019-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多