【问题标题】:Spring cloud starter task : Not able to work on Spring boot 2.xSpring cloud starter 任务:无法在 Spring boot 2.x 上工作
【发布时间】:2018-07-22 14:59:59
【问题描述】:

我试图让spring boot batch application(2.0.0.RC1) 与Spring cloud starter task(2.0.0.M2) 一起工作。 在使 Spring cloud starter task 与 spring boot 2.x 批处理应用程序一起工作时出现一系列错误。

我能够使用Spring cloud starter task(2.0.0.M2) 成功运行批处理应用程序spring-boot-starter-parent(1.5.10.RELEASE)。

这是截图

但是当我尝试使用Spring cloud starter task(2.0.0.M2)spring boot 2.0.0.RC1 时,出现以下错误。

com.fasterxml.jackson.databind.exc.InvalidTypeIdException: 无法将类型 id '' 解析为 [simple type, class java.lang.Object] 的子类型:

这是相同的屏幕截图。

所以我决定将 Spring boot 降级为 2.0.0.M7。唉,我遇到了一个不同的异常。

java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@61f78561 已经关闭。

为什么会发生这种异常?任何帮助/指南将不胜感激。

【问题讨论】:

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


    【解决方案1】:

    Spring Boot 上游发生了相当多的变化,导致 Spring Cloud Task 的 2.0 出现了副作用。

    我们已经解决了所有问题(一些在 Boot 本身中) - 请参阅 here

    我们的目标是在本周发布 2.0 M3 版本,所以在完成之前,也许您可​​以尝试在本地构建 2.0 BUILD-SNAPSHOT。如果您发现任何其他异常情况,请告诉我们。

    【讨论】:

      猜你喜欢
      • 2018-08-03
      • 2018-12-15
      • 2017-03-23
      • 2018-10-03
      • 2018-12-24
      • 2017-08-28
      • 2018-08-29
      • 2014-04-07
      相关资源
      最近更新 更多