Last active
December 21, 2015 00:59
-
-
Save stevendick/6224664 to your computer and use it in GitHub Desktop.
Spring MVC (3.2.x) controller in Clojure (1.5.1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns liquidity.controller | |
(:import org.springframework.stereotype.Controller | |
(org.springframework.web.bind.annotation RequestMapping RequestMethod ResponseBody)) | |
(:gen-class | |
:name ^{Controller ""} ch.hedgesphere.liquidity.controller.LiquidityController | |
:methods [[^{RequestMapping {:value ["/liquidity"] :method [RequestMethod/GET]} ResponseBody {}} hello [] String]])) | |
(defn -hello [this] | |
"Hello world from a Clojure-based controller!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment