距离开始使用 Spring Batch 有一段时间了,一直没有时间整理,现在项目即将完结,整理下这段时间学习和使用经历。官网地址:http://projects.spring.io/spring-batch/一、定义与特点 A lightweight, comprehensive batch fr....
分类:
编程语言 时间:
2014-11-25 01:35:38
阅读次数:
330
Spring Batch_使用JdbcPagingItemReader_多线程的Step 我们最经常使用的就是?JdbcCursorItemReader,使用游标的方式 逐条数据的读取。但是 从spring 官方文档我们知道 ,他不是线程安全的。在这里,我们使用?J...
分类:
数据库 时间:
2014-11-22 02:13:07
阅读次数:
2641
Spring Batch_JOB执行流程分析 debug 代码 JobExecution?result?=?launcher.run(job,
jobParametersBuilder.toJobParameters()); 这是启动job的方法,如下是方法的具体实现: SimpleJobLauncher.java run方法...
分类:
编程语言 时间:
2014-11-21 16:47:29
阅读次数:
490
首先hibernate级联删除的前提是,首先需要在映射文件中配置,配置多表之间的关联关系:下面以部门表(Dept)和员工表(Emp)为例:1.在Emp.hbm.xml映射文件中配置many-to-one关系 1 2 4 5 6 7 8 9 10 11 ...
分类:
数据库 时间:
2014-11-20 11:50:10
阅读次数:
255
Spring Batch_JOB失败的重启_restart机制 在这一篇文章 对于restart做了试验,http://my.oschina.net/xinxingegeya/blog/344817在这片文章里,我们只是当job成功时,重启了job,对于job失败后,重启job有什么效果...
分类:
编程语言 时间:
2014-11-19 18:58:26
阅读次数:
299
Spring Batch_Intercepting Step Execution_配置SkipListener 关于配置skip:http://my.oschina.net/xinxingegeya/blog/346244 先看一下StepListener.java 接口的继承关系图: StepExecutionListener StepExecut...
分类:
编程语言 时间:
2014-11-19 16:32:08
阅读次数:
424
Spring Batch_Intercepting Job Execution_配置JobExecutionListener 关于spring batch skip 的配置请看:http://my.oschina.net/xinxingegeya/blog/346244 在job的运行期间,我们可以捕捉job 的运行开始和结束,...
分类:
编程语言 时间:
2014-11-19 14:20:46
阅读次数:
231
Spring Batch_Configuring Skip Logic_配置允许抛出的异常 spring 官方文档:http://docs.spring.io/spring-batch/trunk/reference/html/configureStep.html#configuringSkip 当spring batch 处理过程中,可能要发...
分类:
编程语言 时间:
2014-11-19 12:47:19
阅读次数:
277
1、音频/视屏转换工具VLC
https://wiki.videolan.org/Mp3/#Container_formats http://wenku.baidu.com/view/ba73ac5c804d2b160b4ec05a.html?re=viewhttps://wiki.videolan.org/How_to_Batch_Encode/https://wiki.videolan....
分类:
其他好文 时间:
2014-11-19 12:37:46
阅读次数:
232
安装Mysql后报错:
InnoDB: Apply batch completed
141115 15:04:36 InnoDB: Started; log sequence number 0 44233
141115 15:04:36 [ERROR] /usr/libexec/mysqld: Ca...
分类:
数据库 时间:
2014-11-15 16:56:39
阅读次数:
256