【问题标题】:Is there a way to create a spring boot client app to read data from another Spring boot app?有没有办法创建一个 Spring Boot 客户端应用程序来从另一个 Spring Boot 应用程序读取数据?
【发布时间】:2021-12-30 18:31:03
【问题描述】:

我想创建 Spring Boot 应用程序工作,因为客户端包含 JSP 文件,视图控制器从另一个 Spring Boot 应用程序读取数据作为服务器端。

服务器端应用程序使用 JPA 处理数据库。

有没有办法或资源来实现这一点?

【问题讨论】:

  • 当然,您只需要以某种方式从其他 Spring 应用程序中获取数据。无论是通过 REST 还是其他一些技术。
  • 谢谢,我需要部署吗?

标签: java spring spring-boot tomcat web-deployment


【解决方案1】:

是的,您可以通过将应用程序创建为 API 服务并将您的数据和信息从其他人那里发送给它,就像上面提到的 RestApi 一样

【讨论】:

    猜你喜欢
    • 2017-09-01
    • 2014-11-04
    • 1970-01-01
    • 1970-01-01
    • 2018-08-28
    • 1970-01-01
    • 2020-12-09
    • 2015-11-11
    • 2021-01-30
    相关资源
    最近更新 更多