使用springboot设置Spring Batch管理控制台UI [英] setup spring batch admin console UI with springboot

查看:870
本文介绍了使用springboot设置Spring Batch管理控制台UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将现有的spring应用程序迁移到spring boot. 应用程序具有春季批处理作业.我想知道使用Spring Boot设置Spring Batch控制台UI的配置.

I am working on migrating existing spring application to spring boot. application has spring batch jobs. I would want to know the configuration to setup spring batch console UI with spring boot.

现有批处理作业在xml中配置,我们希望保持不变.

Existing batch jobs are configured in xml which we want to keep as it is.

spring batch管理员版本:1.2.2.RELEASE 春季启动版本:1.5.10.RELEASE

spring batch admin version : 1.2.2.RELEASE spring boot version : 1.5.10.RELEASE

只是一个补充,因此该应用程序基本上将jersey用于休息服务,并且该应用程序具有春季批处理作业.所以我打算把所有东西都放在一起.欢迎任何想法将所有内容保持在一起,并迁移到Spring Cloud数据流以进行Spring Batch作业监视.

just an addition so the application basically use jersey for rest services and the same application has spring batch jobs. so my intend is to keep everything together. any Idea is welcome to keep everything together and migrate to spring cloud data flow to have spring batch job monitoring.

推荐答案

如果当前应用程序(带有xml,jersey和REST)在Spring上独立运行(通过java -jar ...)引导1.5.10,它在Spring Cloud Data Flow中也应该没有任何问题.

If the current application (with xml, jersey, and REST) works as-is standalone (via java -jar ...) on Spring Boot 1.5.10, it should work without any issues in Spring Cloud Data Flow, too.

您基本上将批处理作业重新打包为Spring Cloud Task应用程序.这是一些批量工作示例@EnableTask批注.还有一个端到端的示例在SCDF中.

You'd basically repackage the batch-job as Spring Cloud Task application. Here are a few batch-job samples with @EnableTask annotation. There's also an end-to-end sample in SCDF.

此外,如果您还没有,请查看SCDF的Spring Batch Admin

Also, if you haven't already, please have a look at Spring Batch Admin to SCDF migration guide.

这篇关于使用springboot设置Spring Batch管理控制台UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆