项目环境:
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. less和sass的介绍和差异

    ● 混入(Mixins)——class中的class: ● 参数混入——可以传递参数的class,就像函数一样: ● 嵌套规则——Class中嵌套class,从而减少重复的代码: ● 运算——CSS中 ...

  2. swift 定位

    iOS 8 及以上需要在info.plist文件中添加下面两个属性 NSLocationWhenInUseUsageDescription 使用应用期间 NSLocationAlwaysUsageDe ...

  3. ASP.NET后台调用前台JS函数的三种常见方法

    第一种:使用普通的添加控件中的Attributes属性进行调用 例如,像一般的普通的按钮:Button1.Attributes.Add("onclick","MyFun( ...

  4. Android性能优化之使用线程池处理异步任务

    转:http://blog.csdn.net/u010687392/article/details/49850803

  5. css 中content内容特殊形状

    用到的一些特殊字符和图标html代码<div class="cross"></div>css代码.cross{    width: 20px;    hei ...

  6. mvc 导入,导出excel

    最近主要做导入excel 在网上查询了代码 public FileResult DownLoadExcelJiZuChaXunGenRenXiaoFeiJiLu() { DataTable dt = ...

  7. C#多线程开发中如何更新UI界面控件内容

    子线程不能修改UI线程的状态(比如文本框里面的内容). 解决的办法是写一个用来更新文本框内容的函数,然后在Worker线程里面通过BeginInvoke来利用delegate调用这个函数更新文本框. ...

  8. Android Studio运行SlidingView报错 FloatMath函数

    1,错误信息时这样的(图片百度的,但是提醒的是一样的) 我们点击这个错误提示,就会跳到出错的地方 2,开始的时候觉得很蛋疼,因为这个SlidingView是从别处导过来的,没什么问题把...就很久就 ...

  9. Java—从文件中读取数据

    1.FileInputStream() // 构建字节输入流对象,参数为文件名 FileInputStream fin = new FileInputStream("message" ...

  10. Linux内核学习总结

    1.<简单C程序生成的汇编代码分析> http://www.cnblogs.com/snowfox2016/p/5225937.html 2.<时间片轮转多道程序代码分析>(未 ...