摘要:
Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或 Seconds Minutes Hours DayofMonth M 阅读全文
posted @ 2017-10-28 11:14
GᎭ•Cristin
阅读(167)
评论(0)
推荐(0)
摘要:
•依赖 spring-context-support •配置: <bean id ="taskExecutor" class ="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor" > <property name =" 阅读全文
posted @ 2017-10-28 10:12
GᎭ•Cristin
阅读(153)
评论(0)
推荐(0)
摘要:
在再度温习Java5的并发编程的知识点时发现,首要的就是把Runnable、Callable、Executor、Future等的关系搞明白,遂有了下述小测试程序,通过这个例子上述三者的关系就一目了然了。 在java5以后,一个可以调度执行的线程单元可以有三种方式定义: Thread、Runnable 阅读全文
posted @ 2017-10-28 09:51
GᎭ•Cristin
阅读(187)
评论(0)
推荐(0)


浙公网安备 33010602011771号