Skip to content

Commit 15c8d39

Browse files
committed
spring-batch 4
1 parent 30032ba commit 15c8d39

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

spring-batch-sample/src/main/resources/batch-task_FL_insurance_sample.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<property name="linesToSkip" value="1"/>
5656
<property name="encoding" value="UTF-8"/>
5757
<!-- <property name="resource" value="file:#{jobParameters['input.file']}" />-->
58-
<property name="resource" value="classpath:FL_insurance_sample.csv" />
58+
<property name="resource" value="classpath:csv2.csv" />
5959

6060
<property name="lineMapper">
6161
<bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper">
@@ -92,7 +92,7 @@
9292
(policyID,statecode,county,eq_site_limit,hu_site_limit,fl_site_limit,fr_site_limit,tiv_2011,tiv_2012,eq_site_deductible,hu_site_deductible,fl_site_deductible,fr_site_deductible,point_latitude,point_longitude,line,construction,point_granularity)
9393
VALUES
9494
(:policyID,:statecode,:county,:eqSiteLimit,:huSiteLimit,:flSiteLimit,:frSiteLimit,:tiv2011,:tiv2012,:eqSiteDeductible,:huSiteDeductible,:flSiteDeductible,:frSiteDeductible,:pointLatitude,:pointLongitude,:line,:construction,:pointGranularity)" />
95-
<property name="dataSource" ref="dataSource-prod" />
95+
<property name="dataSource" ref="dataSource" />
9696
</bean>
9797

9898

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### direct log messages to stdout ###
2+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
3+
log4j.appender.stdout.Target=System.out
4+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
5+
log4j.appender.stdout.layout.ConversionPattern=%d %5p %c%l:%L - %m%n
6+
7+
log4j.rootLogger=WARN, stdout
8+
log4j.logger.pl.altkom=DEBUG
9+
log4j.logger.org.springframework=INFO
10+
log4j.logger.org.hibernate=INFO
11+
12+
#log4j.logger.org.hibernate.type=TRACE

0 commit comments

Comments
 (0)