[JAVA] [Tutoriel] Spring Batch

J'ai essayé le tutoriel de printemps Création d'un service batch.

Cloner Git dans un répertoire approprié

$ 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

[Tutoriel] Spring Batch
[J'ai essayé] Tutoriel de printemps
J'ai essayé Spring Batch
Paramètres de lancement de tâche Spring Batch
Calendrier des tâches du didacticiel Spring Boot
Essayez le tutoriel Spring WebFlux
Étape de boucle avec Spring Batch
Tutoriel Spring Boot à l'aide de l'authentification Spring Security
printemps × docker
rails tutry
Créez un lot à la demande simple avec Spring Batch
À propos du printemps ③
tutoriel sur les rails
rails tutry
tutoriel sur les rails
tutoriel raila
Tutoriel du chef
Spring Java
rails tutry
tutoriel sur les rails
tutoriel sur les rails
Spring Batch 4.1.x - Documentation de référence Lecture et traduction
Mettez la méthode de test Spring Batch sous la transaction Spring-test
Mettre à jour périodiquement la base de données avec Spring Batch et My Batis
Résumé de ce que j'ai appris dans Spring Batch
[Spring Batch] Données de la table de sortie dans un fichier CSV