maven jetty 启动后,不能修改静态文件,js,css,html

2021-07-04 21:03

阅读:602

标签:设置   pom   init   val   color   app   文件   不同   value   

解决办法:

1.从jetty的jar包中(位置可能不同,有的jetty-web中)拷贝一份webdefault.xml文件

2.将webdefault.xml 中的useFileMappedBuffer  设置为false。


useFileMappedBuffer
false


3.将webdefault.xml文件放在maven web 的pom同级目录
4.修改maven中属性,在属性中添加如下配置


/meds
webdefault.xml

注意:jetty版本不同,可能配置并不相同,有可能不好用,以上配置是在9.4.1.v20170120中是好用的,但在别的版本下可能不好用。

maven jetty 启动后,不能修改静态文件,js,css,html

标签:设置   pom   init   val   color   app   文件   不同   value   

原文地址:http://www.cnblogs.com/developer-os/p/7109843.html


评论


亲,登录后才可以留言!