博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
spring + springmvc + jdbc + quartz + maven整合
阅读量:4619 次
发布时间:2019-06-09

本文共 4848 字,大约阅读时间需要 16 分钟。

个人搭建框架:

pom.xml:

4.0.0
com.renmaiweb
lbs
war
1.0-SNAPSHOT
Location Service of BS
http://www.renmaiweb.com
lbs
junit
junit
3.8.1
test
org.json
json
20141113
mysql
mysql-connector-java
5.1.35
commons-dbcp
commons-dbcp
1.3
javax.servlet
servlet-api
3.0-alpha-1
commons-lang
commons-lang
2.4
commons-beanutils
commons-beanutils
1.9.1
net.sf.ezmorph
ezmorph
1.0.5
org.springframework
spring-webmvc
3.2.8.RELEASE
org.springframework
spring-test
3.2.8.RELEASE
org.springframework
spring-context-support
3.2.8.RELEASE
c3p0
c3p0
0.9.1.2
org.springframework
spring-jdbc
4.1.6.RELEASE
com.github.stephenc.eaio-uuid
uuid
3.2.0
net.sf.json-lib
json-lib
2.4
jdk15
org.apache.httpcomponents
httpclient
4.4.1
junit
junit
4.12
org.apache.httpcomponents
httpmime
4.4.1
org.apache.httpcomponents
httpcore
4.4.1
org.quartz-scheduler
quartz
2.2.0

  web.xml

contextConfigLocation
classpath:applicationContext*.xml
org.springframework.web.context.ContextLoaderListener
springMvc
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:spring-mvc.xml
1
springMvc
*.do

  application。xml

0/10 * * * * ?
work

  quartz对应的实体类:

package com.renmaiweb.lbs.quartz;import java.util.Date;public class RegularlyJob {	public void work(){		 System.out.println("当前时间:"+new Date().toString());  	}}

  

 

转载于:https://www.cnblogs.com/a757956132/p/4704061.html

你可能感兴趣的文章
运维平台开发
查看>>
HIVE-分区表详解以及实例
查看>>
python内置下载服务器
查看>>
CDH部署StreamSets
查看>>
AutoParamOptimizer开发日志 9.9 old
查看>>
获取手机的网络类型
查看>>
iOS手写签批
查看>>
for...in... 循环 处理一组按钮的选中状态变动
查看>>
python 函数(function)、函数(def)、函数(return)
查看>>
Gym100212C Order-Preserving Codes
查看>>
TC1570 DesertWind
查看>>
ARC076F Exhausted
查看>>
TC10738 TheContest
查看>>
Redis相关面试题
查看>>
LeetCode 813. Largest Sum of Averages
查看>>
JCEF-鼠标右键菜单
查看>>
const关键字总结
查看>>
Qt--多线程间的互斥
查看>>
httpContext.User.Identity.IsAuthenticated 总是为fasle
查看>>
Docker踩坑小记
查看>>