首页 > 解决方案 > 将 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>

标签: reactjsgoogle-app-enginegoogle-cloud-platform

解决方案


推荐阅读