reactjs - 将 React 连接到 Google Cloud Platform
问题描述
我正在尝试将 React 前端连接到托管我项目后端的 Google Cloud Platform 。我已经添加了这个 servlet,但我真的迷路了。
<servlet>
<servlet-name>react</servlet-name>
<jsp-file>/index.html</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>react</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
解决方案
推荐阅读
- javascript - 使用 javascript 的 HTTP 重定向状态代码
- c# - OpenTK:为什么 GraphicsMode 不可用?
- javascript - 像翻转一样水平旋转图像
- java - BFS 五个字母词链
- reactjs - 声明此功能道具的正确方法是什么?
- sql - 非唯一约束
- ruby-on-rails-6 - 动作文本矩阵不会在 blob 部分内呈现图像和其他 html 标记
- server - 在生产环境中将文件从一台服务器传输到另一台服务器的最佳方式
- kotlin - 未经检查的强制转换:尝试在同一方法中将 Int 或 String 强制转换为 T(泛型类型)
- r - PayPal 沙盒到实时交易搜索 API 不起作用?