Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用有什么区别 -
(route/files "/" {:root "yeoman/app"}) (route/resources "/" {:root "yeoman/app"})
用于设置静态文件夹的根目录?
谢谢,穆尔塔萨
resources,就像clojure.java.io/resource,将相对于您的类路径工作,并且即使它在 jar/war 而不是在本地文件系统中,也可以获取您的数据。
resources
clojure.java.io/resource