SCT-23 Added sample apps for Spring Cloud Task
* Timestamp Demonstrates a Spring boot/task application as a single java file. * HelloWorld Demonstrates a Spring boot/task application using java configuration. resolves spring-cloud/spring-cloud-task#23
This commit is contained in:
committed by
Michael Minella
parent
ccd3a553da
commit
7be3a88826
26
spring-cloud-task-samples/timestamp/README.adoc
Normal file
26
spring-cloud-task-samples/timestamp/README.adoc
Normal file
@@ -0,0 +1,26 @@
|
||||
= Timestamp Job
|
||||
|
||||
This is a Spring Cloud Task application that logs a timestamp.
|
||||
|
||||
== Requirements:
|
||||
|
||||
* Java 7 or Above
|
||||
|
||||
== Classes:
|
||||
|
||||
* TaskApplication - the Spring Boot Main Application
|
||||
* TimestampTask - the module that writes the log entry as Spring Task
|
||||
|
||||
== Build:
|
||||
|
||||
[source,shell,indent=2]
|
||||
----
|
||||
$ mvn clean package
|
||||
----
|
||||
|
||||
== Run:
|
||||
|
||||
[source,shell,indent=2]
|
||||
----
|
||||
$ java -jar target/timestamp-task-1.0.0.BUILD-SNAPSHOT.jar
|
||||
----
|
||||
Reference in New Issue
Block a user