Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-datacenter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-datacenter
Commits
5d2d56cb
Commit
5d2d56cb
authored
Jan 21, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
92f4e945
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
6 deletions
+41
-6
JobConfiguration.java
...bay/src/main/java/com/bailuntec/job/JobConfiguration.java
+5
-6
pom.xml
datacenter-task/ebay-report-produce/pom.xml
+15
-0
pom.xml
datacenter-task/pom.xml
+19
-0
pom.xml
pom.xml
+2
-0
No files found.
datacenter-job/datacenter-base/base-sync-ebay/src/main/java/com/bailuntec/job/JobConfiguration.java
View file @
5d2d56cb
...
...
@@ -6,8 +6,6 @@ import com.bailuntec.domain.DcBaseFinanceEbay;
import
com.bailuntec.domain.DcJobConfig
;
import
com.bailuntec.infrastructure.mapper.DcBaseCompanyAccountMapper
;
import
com.bailuntec.infrastructure.mapper.DcJobConfigMapper
;
import
com.zaxxer.hikari.HikariConfig
;
import
com.zaxxer.hikari.HikariDataSource
;
import
org.springframework.batch.core.Job
;
import
org.springframework.batch.core.Step
;
import
org.springframework.batch.core.configuration.annotation.EnableBatchProcessing
;
...
...
@@ -15,12 +13,9 @@ import org.springframework.batch.core.configuration.annotation.JobBuilderFactory
import
org.springframework.batch.core.configuration.annotation.StepBuilderFactory
;
import
org.springframework.batch.core.launch.support.RunIdIncrementer
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
javax.sql.DataSource
;
/**
* <p>
*
...
...
@@ -41,6 +36,9 @@ public class JobConfiguration {
private
DcJobConfig
dcJobConfig
;
@Autowired
EbayJobListener
ebayJobListener
;
@Autowired
public
JobConfiguration
(
JobBuilderFactory
jobBuilderFactory
,
...
...
@@ -88,7 +86,8 @@ public class JobConfiguration {
.<
EbayItem
,
DcBaseFinanceEbay
>
chunk
(
100
)
// <输入,输出> 。chunk通俗的讲类似于SQL的commit; 这里表示处理(processor)100条后写入(writer)一次。
.
reader
(
reader
())
//指定ItemReader
.
processor
(
processor
())
//指定ItemProcessor
.
writer
(
writer
())
//指定ItemWriter
.
writer
(
writer
())
//指定ItemWriter
.
listener
(
ebayJobListener
)
.
build
();
}
...
...
datacenter-task/ebay-report-produce/pom.xml
0 → 100644
View file @
5d2d56cb
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
datacenter-task
</artifactId>
<groupId>
com.bailuntec
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
ebay-report-produce
</artifactId>
</project>
datacenter-task/pom.xml
0 → 100644
View file @
5d2d56cb
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
bailuntec-datacenter
</artifactId>
<groupId>
com.bailuntec
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
datacenter-task
</artifactId>
<packaging>
pom
</packaging>
<modules>
<module>
ebay-report-produce
</module>
</modules>
</project>
pom.xml
View file @
5d2d56cb
...
...
@@ -17,6 +17,8 @@
<modules>
<module>
datacenter-domain
</module>
<module>
datacenter-job
</module>
<module>
datacenter-task
</module>
<module>
ebay-task-produce
</module>
</modules>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment