首先,提前感谢您阅读本文。
<application>${APPLICATION}</application>
<version>${VERSION}</version>
<system-properties>
<property
name="java.util.logging.config.file"
value="WEB-INF/classes/logging.properties"
/>
<property name="appengine.datastore.disableChunkSizeWarning" value="false"></property>
</system-properties>
<static-files>
<include path="/images/**" expiration="40d 0h 0m 0s" />
</static-files>
<precompilation-enabled>true</precompilation-enabled>
<warmup-requests-enabled>true</warmup-requests-enabled>
<threadsafe>true</threadsafe>
<inbound-services>
<service>channel_presence</service>
</inbound-services>
上面是我的appengine-web.xml,在我配置静态文件设置后,每个页面请求都返回“错误404”
http://dev.magic-note.appspot.com/
这是该网站的链接..
任何人都有任何建议?什么?真的很感激..谢谢你们..
答案 0 :(得分:0)
尝试扩展名:
例如:
<static-files>
<include path="/**.gif" expiration="1d" />
<include path="/**.png" expiration="1d" />
<include path="/**.jpg" expiration="1d" />
<include path="/**.ico" expiration="1d" />
</static-files>
答案 1 :(得分:0)
将所有静态文件复制到src \ main \ webapp文件夹中,并在appengine-web.xml中包含静态文件模式,如下所示。
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>YOUR-PROJECT-ID</application>
<version>1</version>
<threadsafe>true</threadsafe>
<static-files>
<include path="/**.html" />
<include path="/**.js" />
<include path="/**.css" />
</static-files>
</appengine-web-app>