我使用boot使用spring cron作业构建了一个应用程序,并且工作正常。 但我想创建一个jar,它将通过命令行执行以执行我的cron作业。 我不想使用spring boot和xml。
我搜索了,但没有找到任何东西
我该怎么做?我不会从我应该从哪里开始
答案 0 :(得分:0)
您可以从父项和所有子项依赖项中获得乐趣并添加所有层次结构依赖项:
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-batch/1.4.0.RELEASE
<!-- Spring Batch -->
<dependency>
<groupId>org.springframework.batch</groupId>
<artifactId>spring-batch-core</artifactId>
<version>3.0.7.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.3.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.3.2.RELEASE</version>
</dependency>
...
让juste获得必要的依赖关系是漫长而无趣的工作。