项目环境:
3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Leiningen 2.3.2 on Java 1.6.0_43 Java HotSpot(TM) 64-Bit Server VM
[[org.clojure/clojure "1.5.1"][ring/ring-core "1.2.0"][ring/ring-jetty-adapter "1.2.0"]] 1. 生成web项目:
lein new hello-world
cd hello-world
<参考 https://github.com/ring-clojure/ring/wiki/Getting-Started > 2. 启动web服务:
user=>(use 'ring.adapter.jetty)
user=>(use 'hello-world.core)
user=>(defonce server (run-jetty #'handler {:port 3000 :join? false}))
user=>(.stop server) #关闭web服务
user=>(.start server) #开启web服务 3. lein ring项目关闭调试信息,参考lein-ring插件README https://github.com/weavejester/lein-ring环境: org.clojure/clojure "1.5.1" / lein-ring "0.8.7"/ Leiningen 2.3.3 on Java 1.6.0_30 Java HotSpot(TM) 64-Bit Server VM
在project.clj修改
:ring {:handler beta_deploy.core/app}

为:

:ring {:handler beta_deploy.core/app :stacktraces? false}

随机推荐

  1. 怎么把jdk和jRE的Javadoc文档整合到MyEclipse

    有时在写代码时,需要查看javadoc文档,便于编写程序.故如何把Javadoc文档整合到MyEclipse,以便于查看呢? 解决办法: 1.在MyEclipse中菜单栏的“Windows”---&g ...

  2. SSH整合开发的web.xml配置

    <?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" ...

  3. what we do and how we behave

    It comes after a report last week revealed the "brutal" treatment of terror suspects by th ...

  4. 浅谈 Struts2 面试题收藏

    Struts2面试题 一.工作原理 一个请求在Struts2框架中的处理大概分为以下几个步骤 1 客户端初始化一个指向Servlet容器(例如Tomcat)的请求 2 这个请求经过一系列的过滤器(Fi ...

  5. Three.js资源

    学习教程:http://www.hewebgl.com/ 例子:http://threejs.org/

  6. Lucky 2048 - The secret of being lucky

    Lucky 2048 uses a normal distribution to create "lucky" start. Generally speaking, it prov ...

  7. 使用easeui dialog弹出框中使用CKeditor多次加载后无法编辑问题

    问题呈现:弹出框页面 <tr class="addtr"> <th>内容</th> <td> <!-- <textare ...

  8. Junity测试最大子数列和的Java程序

    1.Java环境的安装与配置: Jdk的安装: Jdk下载链接:http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-13 ...

  9. Your build settings specify a provisioning profile with the UUID, no provisioning profile

    在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, however, no suc ...

  10. Codeforces Round #376 (Div. 2)

    A 模拟 #include <cstdio> #include <cstring> int Ans; ]; inline ?x:-x;} inline int Min(int ...