【发布时间】:2021-08-12 13:21:37
【问题描述】:
【问题讨论】:
标签: java google-app-engine google-cloud-platform
【问题讨论】:
标签: java google-app-engine google-cloud-platform
您需要更改 webapp 的处理程序 url。它必须是这样的:
handlers:
- url: /webapp/(.*\.(gif|png|jpg|js|css|json))$
static_dir: webapp\1
它对位于嵌套文件夹中的文件使用正则表达式
【讨论】:
handlers:
# All URLs beginning with /stylesheets are treated as paths to
# static files in the stylesheets/ directory.
- url: /stylesheets
static_dir: stylesheets
# ...
【讨论】: