问题描述
在以下问题的解答之后:
Following the solution of my prev question at: cant import resources
在尝试集成spring-batch-admin之后,我终于设法克服了属性配置
I managed finally to overcome the properties configuration after trying to integrate spring-batch-admin
但是现在我得到了另一个错误:
However now I get different error:
..
java.lang.NoClassDefFoundError: org/springframework/integration/MessagingException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
这是我的gradle脚本:
This is my gradle script:
dependencies {
compile('org.springframework.batch:spring-batch-integration:3.0.1.RELEASE')
compile("org.springframework.batch:spring-batch-admin-manager:1.3.1.RELEASE"){
exclude module: 'slf4j-log4j12'
exclude module: 'slf4j-api'
}
compile("org.springframework.boot:spring-boot-starter-batch:1.2.2.RELEASE
..
所以我想我在两者之间存在版本冲突.
So I guess I am having some version collisions between the two.
这已经花了我很长时间.知道有没有简单的解决方案可以解决,然后再放弃吗?
This already consumed long time for me. any idea if there easy solution to over come before giving up on this?
谢谢,射线.
推荐答案
您必须在Spring Boot中使用spring-batch-admin:2.0.0.M1
.
You are forced to use spring-batch-admin:2.0.0.M1
with Spring Boot.
2.0
版本完全基于Spring Framework 4.1和Spring Integration 4.1.
Exactly the 2.0
version is based on the Spring Framework 4.1 and Spring Integration 4.1.
否则它将不起作用,因为1.3.1
需要SF 3.2和SI 3.0
Otherwise it won't work, because 1.3.1
requires SF 3.2 and SI 3.0
这篇关于Spring批处理管理员和Spring批处理集成抛出MessagingException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!