Spring Cloud Task

使用 Spring Batch 的短时微服务。「Short lived microservices with Spring Batch」

Github星跟蹤圖

Spring Cloud Task

是一个以按需处理的理念为中心的项目。用户能够开发一个 "任务",这个任务可以按需部署、执行和删除,但处理的结果会持续到任务的生命周期之后,供将来报告使用。

要求:

  • Java 8 或以上

建立主项目:

$ ./mvnw clean install

例子:

  @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 ApplicationRunner {
          @Override
          public void run(ApplicationArguments args) throws Exception {
              System.out.println("Hello World");
          }
      }
  }

行为准则

本项目遵守《贡献者公约》的行为准则。通过参与,你应该坚持这一准则。请将不可接受的行为报告给 spring-code-of-conduct@pivotal.io。

构建项目

本项目要求您在 Maven 命令行中调用 Javadoc 引擎。您可以通过在 Maven 命令的其余部分添加javadoc:aggregation来实现。例如,要构建整个项目,您可以使用 ./mvnw -Pfull javadoc:aggregation。


主要指標

概覽
名稱與所有者spring-cloud/spring-cloud-task
主編程語言Java
編程語言Java (語言數: 1)
平台Linux, Mac, Windows
許可證Apache License 2.0
所有者活动
創建於2015-09-02 20:12:00
推送於2025-04-26 08:56:37
最后一次提交
發布數100
最新版本名稱v3.3.0-M3 (發布於 )
第一版名稱v1.0.0.M1 (發布於 2016-01-26 22:35:27)
用户参与
星數429
關注者數48
派生數307
提交數878
已啟用問題?
問題數466
打開的問題數19
拉請求數163
打開的拉請求數0
關閉的拉請求數325
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

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 Main Project:

$ ./mvnw clean install

Example:

@SpringBootApplication
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.

Building the Proect

This project requires that you invoke the Javadoc engine from the Maven command line. You can do so by appending javadoc:aggregate to the rest of your Maven command.
For example, to build the entire project, you could use ./mvnw -Pfull javadoc:aggregate.