2

首先,提前感谢您阅读本文。

<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/

这是网站的链接。。

有人有什么建议吗??任何事物??真的很感激..谢谢大家..

4

2 回答 2

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>
于 2013-02-14T12:06:29.320 回答
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>
于 2016-08-05T04:04:13.383 回答