在StormpathWebMvcAutoConfiguration.stormpathApplicationResolver上缺少@ConditionalBean

时间:2016-10-26 21:31:38

标签: spring-boot stormpath

在尝试将Stormpath添加到我现有的Spring-Boot应用程序时,启动时出现以下错误。

java.lang.IllegalStateException: Error processing condition on     com.stormpath.spring.boot.autoconfigure.StormpathWebMvcAutoConfiguration.stormpathApplicationResolver

...

Caused by: java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)

我的pom:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.3.6.RELEASE</version>
    <relativePath /> 
</parent>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.8</java.version>
    <stormpath.version>1.1.1</stormpath.version>
</properties>

<dependencies>
    <dependency>
        <groupId>com.stormpath.spring</groupId>
        <artifactId>stormpath-default-spring-boot-starter</artifactId>
        <version>${stormpath.version}</version>
    </dependency>

</dependencies>

1 个答案:

答案 0 :(得分:1)

stormpath版本1.1.1适用于1.4号弹簧展位。我通过将spring-boot-starter-parent版本更改为1.4.1来解决了这个问题。