How to make Jetty dynamically load “static” pages

前端 未结 10 782
耶瑟儿~
耶瑟儿~ 2020-12-02 14:57

I am building Java web applications, and I hate the traditional \"code-compile-deploy-test\" cycle. I want to type in one tiny change, then see the result INSTANTLY, without

10条回答
  •  渐次进展
    2020-12-02 15:22

    Jetty uses memory-mapped files to buffer static content, which causes the file-locking in Windows. Try setting useFileMappedBuffer for DefaultServlet to false.

    Troubleshooting Locked files on Windows (from the Jetty wiki) has instructions.

提交回复
热议问题