我有一个spring-xd处理器模块,该模块对使用spring-data-jpa的项目有依赖性:

xd处理器模块的pom.xml:

<dependencies>
    <dependency>
        <groupId>org.test.common</groupId>
        <artifactId>org.test.common</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </dependency>
</dependencies>

org.test.common的pom.xml:
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
</dependencies>

如果我运行integration test,一切正常。但是,部署到xd-singlenode(1.2.0.RELEASE)失败,并显示以下错误:
2015-06-21T20:50:35+0200 1.2.0.RELEASE ERROR    DeploymentsPathChildrenCache-0 boot.SpringApplication - Application startup failed
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.jpaVendorAdapter
    at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:58) ~[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
...
Caused by: java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
...

您可以在github上 check out 完整样本。

我究竟做错了什么?任何帮助,将不胜感激。

最佳答案

尝试以下解决方案

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>1.2.6.RELEASE</version>



click here了解更多

关于java - 无法在xd-singlenode上使用spring-data-jpa部署spring-xd处理器模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31255147/

10-14 11:39