setup spring batch admin console UI with springboot

柔情痞子 提交于 2019-12-11 16:56:55

问题


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.

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

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

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.


回答1:


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.

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.

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



来源:https://stackoverflow.com/questions/49174904/setup-spring-batch-admin-console-ui-with-springboot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!