48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
= Spring Cloud Task image:https://build.spring.io/plugins/servlet/buildStatusImage/SCT-STASK[Build Status, link=https://build.spring.io/browse/SCT-STASK] image:https://badge.waffle.io/spring-cloud/spring-cloud-task.svg?label=ready&title=Ready[Stories in Ready, link=http://waffle.io/spring-cloud/spring-cloud-task] image:https://badge.waffle.io/spring-cloud/spring-cloud-task.svg?label=In%20Progress&title=In%20Progress[Stories in Progress, link=http://waffle.io/spring-cloud/spring-cloud-task]
|
|
|
|
Is a project centered around the idea of processing on demand. A user is able to develop
|
|
a “task” that can be deployed, executed and removed on demand, yet the result of the
|
|
process persists beyond the life of the task for future reporting.
|
|
|
|
|
|
== Requirements:
|
|
|
|
* Java 7 or Above
|
|
|
|
== Build:
|
|
|
|
[source,shell,indent=2]
|
|
----
|
|
$ ./mvnw clean install
|
|
----
|
|
|
|
== Example:
|
|
|
|
[source,java,indent=2]
|
|
----
|
|
@SpringBootApplication
|
|
@EnableTask
|
|
public class MyApp {
|
|
|
|
@Bean
|
|
public MyTaskApplication myTask() {
|
|
return new MyTaskApplication();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(MyApp.class);
|
|
}
|
|
|
|
public static class MyTaskApplication implements CommandLineRunner {
|
|
|
|
@Override
|
|
public void run(String... strings) throws Exception {
|
|
System.out.println("Hello World");
|
|
}
|
|
}
|
|
}
|
|
----
|
|
|
|
== Code of Conduct
|
|
This project adheres to the Contributor Covenant link:CODE_OF_CONDUCT.adoc[code of conduct]. By participating, you are expected to uphold this code. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.
|