我试图让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-boot-starter-parent(1.5.10.RELEASE)Spring cloud starter task(2.0.0.M2)。
这是屏幕截图
但是当我尝试Spring cloud starter task(2.0.0.M2)使用时spring boot 2.0.0.RC1,我收到以下错误。
com.fasterxml.jackson.databind.exc.InvalidTypeIdException:无法将类型 id '' 解析为 [简单类型,类 java.lang.Object] 的子类型:
所以我决定将 Spring Boot 降级到2.0.0.M7.Alas 我得到了一个不同的例外。
java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@61f78561 已经关闭。
为什么会发生这种异常?任何帮助/指南将不胜感激。


