【发布时间】:2021-10-10 03:08:03
【问题描述】:
我是 React 新手,很难理解如何将 React 集成到 Spring Boot 服务器中?我习惯了两个前端都只是服务器的一部分的旧模型。
Spring 在localhost:8080 运行。 React 在localhost:3000 运行。服务器有 React 想要调用的 rest 端点。
如何让 Spring 为包含 React 组件的 index.html 提供服务?
【问题讨论】:
标签: reactjs spring-boot react-hooks