【发布时间】: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