Skip to content

cppwfs/sct-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SampleTaskApplication

A Spring Boot App that contains multiple Spring Cloud Tasks. Where each task logs a timestamp. This also connects to a hsqldb in-memory db to demonstrate writing tasks to a relational database. Note: since it is hsqldb in memory the results will be lost at end of run, but you can use your own database (using boot’s datasource properties).

Requirements:

  • Java 7 or Above

Classes:

  • SampleTaskApplication - the Spring Boot Main Application that will execute the SampleC & SampleB CommandLineRunners that are annotated with @Task. It also uses the SampleTaskConfiguration that is annotated with the @EnableTask annotation to initialize the SampleB Bean.

  • MyApp is a boot Main Application that contains a single MyTask CommandLineRunner that is annotated with @Task and the @MyApp is annotated with EnableTask.

  • TimestampTask - the module that writes the log entry as Spring Batch Tasklet

Build:

  $ mvn clean package

Run SampleTaskApplication:

  $ java -jar target/sct-demo-1.3.0.BUILD-SNAPSHOT.jar

About

A quick and dirty demo of SCT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages