我正在尝试使用spring集成来发布、订阅sqs。我从以下几个方面开始我的等级依赖:
compile group: 'org.springframework.cloud', name: 'spring-cloud-aws-messaging', version: '1.0.0.RELEASE'
compile group: 'org.springframework.integration', name: 'spring-integration-aws', version: '1.0.0.RELEASE'它在抱怨:
ClassNotFoundException:org.springframework.cloud.
aws.messaging.listener.SqsMessageDeletionPolicy我接着接着说:
compile group: 'org.springframework.cloud', name: 'spring-cloud-
starter-aws', version: '1.0.1.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-
dependencies', version: 'Brixton.RELEASE', ext: 'pom'现在我明白了:
nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cloud/aws/jdbc/config/annotation/AmazonRdsInstanceConfiguration$AbstractRegistrar.class] cannot be opened because it does not exist我根本没有在我的项目中使用jdbc,所以我认为我使用了一组错误的依赖项。我在这里做错什么了?有人能帮我完成我需要使用的传递性家属的列表吗?
发布于 2017-09-12 16:04:54
您应该使用这个组合:
compile group: 'org.springframework.integration', name: 'spring-integration-aws', version: '1.0.0.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-aws-messaging', version: '1.1.0.RELEASE'据我所知没什么。
对,spring-cloud-aws-messaging依赖于spring-integration-aws是可选的,但是用于spring-integration-aws:1.0.0.RELEASE的版本肯定是1.1.0.RELEASE,而不是1.0.0.RELEASE。
https://stackoverflow.com/questions/46180925
复制相似问题