【问题标题】:setup spring batch admin console UI with springboot使用 Spring Boot 设置 Spring Batch 管理控制台 UI
【发布时间】:2018-08-16 21:53:38
【问题描述】:

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

现有的批处理作业在 xml 中配置,我们希望保持原样。

春季批处理管理版本:1.2.2.RELEASE 春季启动版本:1.5.10.RELEASE

只是一个补充,所以应用程序基本上使用 jersey 来提供休息服务,并且同一个应用程序有 spring 批处理作业。所以我的意图是将所有东西放在一起。欢迎任何想法将所有内容放在一起并迁移到 Spring Cloud 数据流以进行 Spring Batch 作业监控。

【问题讨论】:

    标签: spring-boot spring-cloud-dataflow spring-batch-admin


    【解决方案1】:

    如果当前应用程序(带有 xml、jersey 和 REST)在 Spring Boot 1.5.10 上按原样独立运行(通过 java -jar ...,它应该在 Spring Cloud 中正常运行数据流也是如此。

    您基本上将批处理作业重新打包为 Spring Cloud Task 应用程序。这里有几个batch-job samples 带有@EnableTask 注释。 SCDF 中还有一个端到端的sample

    另外,如果您还没有,请查看 Spring Batch Admin to SCDF migration guide

    【讨论】:

    • 让我试试看。我们已经转移到 Spring Boot 2.0.2。并且无法为 2.0.2 版设置管理 ui。
    • 你能帮我看看我们如何增强日志以在 spring boot 嵌入式 tomcat 应用程序日志中添加挂起线程检测和 cpu 饥饿警报(类似于 WAS swervers 中支持的),我问过这个问题在这里stackoverflow.com/questions/50947910/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-23
    • 2015-08-03
    • 2012-11-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多