【发布时间】:2023-03-12 21:47:01
【问题描述】:
我刚开始Web Development with Clojure,但我遇到了一个非常简单的问题。我在project.clj 中有:main myapp.core/foo
(defproject myapp "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]]
;; this will set foo as the main function
:main myapp.core/foo)
但是当我运行lein 时,我得到了这个错误:
C:\Users\a>lein run First
No :main namespace specified in project.clj.
C:\Users\a>
我做错了什么?
【问题讨论】: