8

我的命名空间目前开始:

(ns web.site
  (:require ring.adapter.jetty)

  (:require ring.middleware.reload)
  (:require ring.middleware.stacktrace)
  (:require ring.middleware.params)
  (:require ring.middleware.keyword-params)
  (:require ring.middleware.nested-params)
  (:require ring.middleware.multipart-params)
  (:require ring.middleware.cookies)
  (:require ring.middleware.session)
  (:require ring.middleware.session.cookie)
  (:require ring.middleware.flash)
  (:require ring.middleware.resource)
  (:require ring.middleware.file-info))

这里显然存在一定的冗余。如何删除它?

4

1 回答 1

11

尝试

(:require [ring.middleware reload stacktrace params keyword-params]) 
于 2013-02-03T20:58:33.163 回答