I'm creating a web app with Clojure using Selmer templates. I'm using Jetty, and I have to restart it to see my changes. I want to see my changes without restarting the server. How can I achieve this?
我建议你迁移到http-kit来获得热代码重载,这很容易
添加[http-kit "2.1.18"]
到您的project.clj
和org.httpkit.server
您的use
块中,然后替换run-jetty
为run-server
. 在上面的链接中查看详细信息