Spring Cloud Task

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

Github stars Tracking Chart

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。


Overview

Name With Ownerspring-cloud/spring-cloud-task
Primary LanguageJava
Program languageJava (Language Count: 1)
PlatformLinux, Mac, Windows
License:Apache License 2.0
Release Count90
Last Release Namev3.1.1 (Posted on )
First Release Namev1.0.0.M1 (Posted on 2016-01-26 22:35:27)
Created At2015-09-02 20:12:00
Pushed At2024-04-04 15:49:52
Last Commit At
Stargazers Count415
Watchers Count55
Fork Count308
Commits Count811
Has Issues Enabled
Issues Count459
Issue Open Count15
Pull Requests Count161
Pull Requests Open Count0
Pull Requests Close Count325
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.

To the top