我按照https://github.com/pedestal/app-tutorial/wiki/Getting-Started上的教程进行了以下操作:
mkdir pedestal-app-tutorial
cd pedestal-app-tutorial
lein new pedestal-app tutorial-client no-comment
cd tutorial-client
v@mort:$ lein repl
(at this point all the dependencies gets installed and then the repl starts)
nREPL server started on port 37510 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Welcome to pedestal-app! Run (tools-help) to see a list of useful functions.
user=> (start)
user=> (start)
:ok
导航到http://localhost:3000/tutorial-client-dev.html
结果:
Error processing request!
Exception:
java.lang.StackOverflowError: null
at java.util.regex.Pattern$GroupTail.match (Pattern.java:4615)
java.util.regex.Pattern$BranchConn.match (Pattern.java:4466)
java.util.regex.Pattern$CharProperty.match (Pattern.java:3694)
etc, etc, etc ...
线索,提示可能出了什么问题?
使用 Leiningen 2.3.2 并project.clj
说:io.pedestal/pedestal.app "0.2.1"