: 代码: ; clojure connect to mysql ; ithomer.net ; 2013.12.10 (ns myClojure.syntax.httpkit3 (:use [compojure.route...:only [files not-found]] [compojure.handler :only [site]] [compojure.core :only [defroutes...GET POST DELETE ANY context]] [org.httpkit.server]) (:require [compojure.route :as route])...控制台打印输出: Hello World 参考推荐: http-kit server(官方) compojure(github) http-kit做高性能 HTTP 反向代理
本篇文章首先介绍 Ring 核心概念及其实现原理,然后介绍如何基于 Ring + Compojure 实现一 RESTful 服务。...Compojure 是 Ring 生态里面默认的路由器,同样短小精悍,功能强大。...Compojure 里面使用了大量宏来简化路由的定义,像上面例子中的GET、not-found等。...Compojure 路由分发 Compojure 通过 routes 把一系列 handler 封装起来,其内部调用 routing 方法找到正确的 handler。...Ring + Compojure + lein-ring 你值得拥有。
执行: lein new compojure demo 建立一个名为demo的示例项目,之后生成pom文件: cd demo lein pom ?
HTTP应用程序的Java库系列 Express :这不是Java web框架,而是建立在Node.js上的Javascript框架 Ninja framework :全栈web框架,协同GAE工作很好 Compojure
应用程序的Java库系列 Express :这不是Java web框架,而是建立在Node.js上的JavaScript框架 Ninja framework :全栈web框架,协同GAE工作很好 Compojure
org.clojure/clojurescript "0.0-2411" :exclusions [org.apache.ant/ant]] [compojure
clojure工具箱汇总: http://www.clojure-toolbox.com/ ring server: https://github.com/ring-clojure/ring/wiki compojure...: https://github.com/weavejester/compojure/wiki noir web框架: http://www.webnoir.org sandbar session
clj-time-0.4.1.jar;E:\maven\repository\joda-time\joda-time\2.0\joda-time-2.0.jar;E:\maven\repository\compojure...\compojure\1.1.3\compojure-1.1.3.jar;E:\maven\repository\org\clojure\core.incubator\0.1.0\core.incubator
http://artofmonitoring.com" :dependencies [[org.clojure/clojure "1.8.0"] [compojure
108,330 19.3% 0 Mcr Rby Rac Tor Lin Rea 78 akka-http 103,453 18.5% 0 Mcr Sca Akk Non Lin Rea 79 compojure
-0.9.2-incubating/lib/commons-logging-1.1.3.jar:/home/hadoop/soft/apache-storm-0.9.2-incubating/lib/compojure
lib/commons-codec-1.6.jar:/opt/apache-storm-0.9.5/lib/servlet-api-2.5.jar:/opt/apache-storm-0.9.5/lib/compojure
领取专属 10元无门槛券
手把手带您无忧上云