问题
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