clojure 使用本地jar

在project.clj 中增加如下diam
:resource-paths [“resources/elasticjob-operation-0.0.1-SNAPSHOT.jar”]

是clj文件中使用import 导入即可

(ns clojure-learn.lite
(:import com.dangdang.ddframe.job.config.JobCoreConfiguration
         com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration
         com.dangdang.ddframe.job.event.JobEventConfiguration
         com.dangdang.ddframe.job.event.rdb.JobEventRdbConfiguration
         com.dangdang.ddframe.job.lite.api.JobScheduler
         com.dangdang.ddframe.job.lite.config.LiteJobConfiguration
         com.dangdang.ddframe.job.reg.base.CoordinatorRegistryCenter
         com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration
         com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter
         org.apache.commons.dbcp.BasicDataSource
         ))

猜你喜欢

转载自blog.csdn.net/weixin_40455124/article/details/112647324