【问题标题】:JPA Data with REST with multiple Repository带有多个存储库的 REST 的 JPA 数据
【发布时间】:2014-12-11 16:02:00
【问题描述】:

我正在使用 Spring Boot 来处理带有 Rest 的 JPA 数据。我遇到了一个问题,当有两个存储库时只能访问一个存储库。
例如:

localhostx.com:8080/abc --> 加载正常
localhostx.com:8080/xyz --> 无法正常加载
停止并重新启动。
localhostx.com:8080/abc --> 无法正常加载
localhostx.com:8080/xyz --> 加载正常

在您使用多个存储库的情况下,是否有人遇到过此类问题?

【问题讨论】:

    标签: java spring hibernate rest jpa


    【解决方案1】:

    您不能将两个资源放在同一个端口上。将它们放在不同的端口上,例如:

    localhostx.com:8080/abc

    localhostx.com:8081/xyz

    【讨论】:

      猜你喜欢
      • 2019-05-10
      • 2016-03-26
      • 2021-07-12
      • 2012-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-26
      • 1970-01-01
      相关资源
      最近更新 更多