What wrong with run-jetty in the Clojure webapps with Ring?

98 views Asked by At

Writing a tiny web app in clojure, when I execute the program in REPL, encountered an error in calva-repl (; No such var: jetty/run-jetty), Please comment what wrong with the program, thank you

Error

; No such var: jetty/run-jetty

deps.edn in :deps section

;;
ring/ring-core {:mvn/version "1.10.0"}
ring/ring-jetty-adapter {:mvn/version "1.10.0"}}

Source code

(ns ring-app.ring-app
  (:require [ring.adapter.jetty :as jetty]))

(defn app [req]
  {:body "hello world!"})

(jetty/run-jetty app {:port 3000}) 
0

There are 0 answers