SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上

在storefrontapp的src文件夹下,有index.html和index2.html:

SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上

对index.html做简单的本地编辑:

SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上

地址栏里输入http://localhost:4200/electronics-spa/en/USD/index.html
本地修改生效了:

SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上

地址栏里输入http://localhost:4200/electronics-spa/en/USD/index2.html:
收到错误提示:Oops! We couldn’t find the page you are looking for.

SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上

Spartacus试图到SAP Commerce Cloud后台去读取index2.html对应的page信息,当然会失败了:

SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP Spartacus storefrontapp不是运行在简单的tomcat服务器上