This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-28
Channels
- # announcements (5)
- # babashka (7)
- # beginners (46)
- # biff (28)
- # calva (7)
- # cider (3)
- # clerk (82)
- # clj-commons (9)
- # clj-kondo (7)
- # clojure (37)
- # clojure-dev (16)
- # clojure-europe (18)
- # clojure-norway (7)
- # clojurescript (8)
- # clojureverse-ops (3)
- # cursive (5)
- # datomic (4)
- # emacs (20)
- # exercism (2)
- # lsp (58)
- # off-topic (32)
- # polylith (11)
- # reitit (7)
- # tools-build (7)
- # xtdb (4)
Hi, I keep getting this error. I've tried changing my java version, didn't work. Deleted reitit and ring from ~/.m2 and re-ran lein deps. If anyone knows what I need to do that would be great! Syntax error (ClassNotFoundException) compiling . at (ring/middleware/multipart_params.clj:29:5).
javax.servlet.http.HttpServletRequest
That’s not related to Reitit at all. It looks like you’re using ring-core
without the corresponding servlet library.
cf. https://github.com/ring-clojure/ring#upgrade-notice
When defining routes for an application like this, is it possible to somehow add middleware for the resource-handler and default handler? I can't seem to find any examples of this.
(def app
(ring/ring-handler
(ring/router app-routes)
(ring/routes
(ring/create-resource-handler {:path "/v2"})
(ring/create-default-handler {:not-found (constantly not-found)}))))