Jetty锁定Windows中的静态文件 [英] Jetty locking static files in Windows

查看:97
本文介绍了Jetty锁定Windows中的静态文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看不到我对静态文件的更改.

I do not see, my changes of the static files.

在另一个资源中,推荐以下方法:

In the another resources recommending the following method:

包含到webdefault.xml

Include to the webdefault.xml

<init-param>
    <param-name>useFileMappedBuffer</param-name>
    <param-value>true</param-value> <!-- change to false -->
</init-param>

但是没有用.有什么想法吗?

But it not the working. Have any idea?

码头版本:8.1.8.v20121106

Jetty version: 8.1.8.v20121106

推荐答案

useFileMappedBuffer初始化参数用于DefaultServlet的文件锁定.

The useFileMappedBuffer init-param is for file locking by the DefaultServlet.

如果可以使用编辑器更改静态文件并保存且没有错误,则此可配置项与您的问题我看不到静态文件的更改"无关.

If you can change your static files with an editor and save, with no error, then this configurable has no bearing for your question "I do not see my changes of the static files".

可能的情况:

  • 浏览器正在缓存原始响应
  • 您在磁盘上更改的文件不是Jetty正在提供的文件.

这篇关于Jetty锁定Windows中的静态文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆