[英]JPA Data with REST with multiple Repository
I am using Spring boot for JPA Data with Rest. 我将Spring Boot用于带有Rest的JPA数据。 I am having a issue where only one repository is accessible when there is two.
我遇到一个问题,即有两个存储库时只能访问一个存储库。
For example: 例如:
localhostx.com:8080/abc --> loads fine
localhostx.com:8080/abc->加载正常
localhostx.com:8080/xyz --> does not loads finelocalhostx.com:8080/xyz->无法正常加载
Stop and restart.停止并重新启动。
localhostx.com:8080/abc --> does not loads finelocalhostx.com:8080/abc->无法正常加载
localhostx.com:8080/xyz --> loads finelocalhostx.com:8080/xyz->加载正常
Has anybody had this kind of issues where you where using more than one repository?在您使用多个存储库的地方,有人遇到过此类问题吗?
You can not put two resources on the same port. 您不能将两个资源放在同一端口上。 Place them on different ports, like:
将它们放在不同的端口上,例如:
localhostx.com:8080/abc
localhostx.com:8080/abc
localhostx.com:8081/xyz
本地主机x.com:8081/xyz
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.