StormpathWebMvcAutoConfiguration.stormpathApplicationResolver 上缺少@ConditionalBean

Missing @ConditionalBean on StormpathWebMvcAutoConfiguration.stormpathApplicationResolver

在尝试将 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>

stormpath 版本 1.1.1 适用于 spring-booth 1.4。我通过将 spring-boot-starter-parent 版本更改为 1.4.1.

解决了这个问题