[JAVA] [Tutorial] Spring Batch

Ich habe das Spring-Tutorial Erstellen eines Batch-Service ausprobiert.

Git-Klon in einem geeigneten Verzeichnis

$ git clone https://github.com/spring-guides/gs-batch-processing.git
$ mba-2:target #{myname}$ java -jar /Users/#{myname}/projects/gs-batch-processing/complete/target/batch-processing-0.0.1-SNAPSHOT.jar
.   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.2.RELEASE)

2020-08-10 21:19:13.517  INFO 50375 --- [           main] c.e.b.BatchProcessingApplication         : Starting BatchProcessingApplication v0.0.1-SNAPSHOT on mba-2 with PID 50375 (/Users/#{myname}/projects/gs-batch-processing/complete/target/batch-processing-0.0.1-SNAPSHOT.jar started by #{myname} in /Users/#{myname}/projects/gs-batch-processing/complete/target)
2020-08-10 21:19:13.520  INFO 50375 --- [           main] c.e.b.BatchProcessingApplication         : No active profile set, falling back to default profiles: default
2020-08-10 21:19:14.662  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2020-08-10 21:19:14.671  WARN 50375 --- [           main] com.zaxxer.hikari.util.DriverDataSource  : Registered driver with driverClassName=org.hsqldb.jdbcDriver was not found, trying direct instantiation.
2020-08-10 21:19:15.098  INFO 50375 --- [           main] com.zaxxer.hikari.pool.PoolBase          : HikariPool-1 - Driver does not support get/set network timeout for connections. (feature not supported)
2020-08-10 21:19:15.103  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2020-08-10 21:19:15.430  INFO 50375 --- [           main] o.s.b.c.r.s.JobRepositoryFactoryBean     : No database type set, using meta data indicating: HSQL
2020-08-10 21:19:15.716  INFO 50375 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : No TaskExecutor has been set, defaulting to synchronous executor.
2020-08-10 21:19:15.825  INFO 50375 --- [           main] c.e.b.BatchProcessingApplication         : Started BatchProcessingApplication in 2.835 seconds (JVM running for 3.415)
2020-08-10 21:19:15.826  INFO 50375 --- [           main] o.s.b.a.b.JobLauncherCommandLineRunner   : Running default command line with: []
2020-08-10 21:19:15.912  INFO 50375 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : Job: [FlowJob: [name=importUserJob]] launched with the following parameters: [{run.id=1}]
2020-08-10 21:19:15.992  INFO 50375 --- [           main] o.s.batch.core.job.SimpleStepHandler     : Executing step: [step1]
2020-08-10 21:19:16.062  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Jill, lastName: Doe) into (firstName: JILL, lastName: DOE)
2020-08-10 21:19:16.062  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Joe, lastName: Doe) into (firstName: JOE, lastName: DOE)
2020-08-10 21:19:16.062  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Justin, lastName: Doe) into (firstName: JUSTIN, lastName: DOE)
2020-08-10 21:19:16.063  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: Jane, lastName: Doe) into (firstName: JANE, lastName: DOE)
2020-08-10 21:19:16.063  INFO 50375 --- [           main] c.e.batchprocessing.PersonItemProcessor  : Converting (firstName: John, lastName: Doe) into (firstName: JOHN, lastName: DOE)
2020-08-10 21:19:16.074  INFO 50375 --- [           main] o.s.batch.core.step.AbstractStep         : Step: [step1] executed in 82ms
2020-08-10 21:19:16.080  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : !!! JOB FINISHED! Time to verify the results
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JILL, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JOE, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JUSTIN, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JANE, lastName: DOE> in the database.
2020-08-10 21:19:16.083  INFO 50375 --- [           main] c.e.b.JobCompletionNotificationListener  : Found <firstName: JOHN, lastName: DOE> in the database.
2020-08-10 21:19:16.088  INFO 50375 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : Job: [FlowJob: [name=importUserJob]] completed with the following parameters: [{run.id=1}] and the following status: [COMPLETED] in 107ms
2020-08-10 21:19:16.092  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2020-08-10 21:19:16.102  INFO 50375 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.

Recommended Posts

[Tutorial] Spring Batch
[Ich habe es versucht] Spring Tutorial
Ich habe Spring Batch ausprobiert
Startparameter für Spring Batch-Jobs
Aufgabenplan für das Spring Boot Tutorial
Probieren Sie das Spring WebFlux-Tutorial aus
Schleifenschritt mit Spring Batch
Spring Boot Tutorial Verwenden der Spring Security-Authentifizierung
Frühling × Docker
Schienen Tutry
Erstellen Sie mit Spring Batch eine einfache On-Demand-Charge
Über den Frühling ③
Schienen Tutorial
Schienen Tutry
Deshalb habe ich dieses Mal die Methode "Verknüpfen des Inhalts des Verzeichnisses" übernommen. Ich denke, es wird je nach Zeit und Fall richtig verwendet. Tutorial zu Linux, ln, Linux-Befehlsschienen
Raila Tutorial
Koch-Tutorial
Frühling Java
Schienen Tutry
Schienen Tutorial
Schienen Tutorial
Spring Batch 4.1.x - Referenzdokumentation Gelesen und übersetzt
Fügen Sie die Spring Batch-Testmethode unter die Spring-Test-Transaktion ein
Aktualisieren Sie die Datenbank regelmäßig mit Spring Batch und My Batis
Zusammenfassung dessen, was ich in Spring Batch gelernt habe
[Spring Batch] Gibt Tabellendaten in eine CSV-Datei aus