spring-batch-sample是一个很好学习batch的例子,里面还包含了maven管理等有趣的知识。不过spring-batch-sample下下来是会遇到很多问题的,这里就写个文章与大家分享一下。
1. 下载spring工程 http://static.springsource.org/downloads/nightly/release-download.php?project=BATCH
BATCH/spring-batch-2.1.8.RELEASE-no-dependencies.zip
2. 进入sample,然后修改pom.xml,添加
<pluginRepositories>
<pluginRepository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource Enterprise Bundle Repository</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</pluginRepository>
</pluginRepositories>
3. 下载
http://sourceforge.net/projects/vpp/files/vpp/2.2.1/foundrylogic-vpp-2.2.1.zip/download
如果没有就下载我的附件
然后解压,安装jar包到本地
mvn install:install-file -DgroupId=foundrylogic.vpp -DartifactId=vpp -Dversion=2.2.1 -Dpackaging=jar -Dfile=/path/to/foundrylogic-vpp-2.2.1.jar
4. mvn test
全部通过
分享到:
相关推荐
SpringBatch Tasklet sample
PatternMatchingCompositeLineMapper MatchingClassLineAggregator
Tasklet和Chunk两种方式的SpringBatch
java -jar build/libs/spring-batch-example-all-1.0.0.jar com.example.batch.TransportImportBatch loadTransportJob fileName=sample-data.csv ##Unit test 包括 jacoco 测试覆盖率报告 gradle unitTest 测试...
Table of Contents * Batch and Spring * Spring Batch 101 * Sample Job * Understanding Jobs and Steps * Job Repository and Metadata * Running a Job * Readers * Item Processors * Item Writers * Sample ...
SpringBatchSampleSpring Batch Sample 4 book本项目是图书《Spring Batch批处理框架》的配套源代码。
以顺序或并行模式批处理文件的示例。 用 : mvn clean install# launch sequential versionjava -jar SpringBatchSample.jar sequential-context.xml printJob# launch parallel versionjava -jar SpringBatchSample...
Spring批次Lightmin样品该项目包含示例应用程序,以演示Spring Batch Lightmin库的用法。...存储库服务器样本spring-batch-lightmin-repository-server-sample 样本存储库服务器应用程序服务器样本spring-batch
Table of Contents * Batch and Spring * Spring Batch 101 * Sample Job * Understanding Jobs and Steps * Job Repository and Metadata * Running a Job * Readers * Item Processors * Item Writers * Sample ...
csv-file-processor-spring-batch 该应用程序确实使用 Spring Batch 处理了一个巨大的 CSV 文件,它可以使用 Maven 进行构建/测试。 它确实需要传递以下属性/参数: --csv.processor.chunk.size={要处理的块大小} --...
batch_sample [•] 是用于使用Spring4快速启动批处理的示例。 它基于版本。 关于 有关Spring4的更多。 有关Mybatis3的更多。 有关Gradle的更多。 需求环境 开始吧 将密码设置为root。 mysql>GRANT ALL ...
该项目将两个主要示例组合在一起,显示了如何使用spring batch来生产平面文件。 此处配置的作业将读取一个csv文件(sample-data.csv),将每一行转换为大写文本,然后将其写回到文件中。 这个想法是为了显示困扰我的...
Spring启动样本批次
spring-boot-sample-batch-with-apns-gcm 这是在 spring-boot-sample-batch 之上的 APNS 和 GCM 示例应用程序 背景 在我的公司,我有机会制作一个内部“推送服务器”,它是 APNS 和 GCM 的网关服务器。 所以我决定...
spring-boot-batch spring-boot-cache spring-boot-configurable spring-boot-cors spring-boot-custom-jackson spring-boot-docker spring-boot-dynamo spring-boot-event spring-boot-excel sp
Spring批量样品用于测试弹簧批处理功能的样本应用程序主要终点: / run --->用于触发批处理作业,现在它从mongodb中读取数据并将其保存到xml文件中其他端点:(Mongo凝乳操作) / save --->将文件保存到测试...
■ Chapter 1: Introducing Spring..............................................................................1 ■ Chapter 2: Getting Started .............................................................