创建名称为“类缓存存储库”的bean时出错

时间:2018-07-06 07:31:31

标签: java spring spring-mvc spring-boot spring-data

我在升级Spring版本时遇到问题。 我想获取春季版本并做到了,但是遇到错误...

下面显示“状态评估报告”。

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webflux</artifactId>
    <version>5.0.7.RELEASE</version>
    <exclusions>
    <exclusion>
        <groupId>io.projectreactor</groupId>
        <artifactId>reactor-core</artifactId>
    </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.projectreactor</groupId>
    <artifactId>reactor-spring</artifactId>
    <version>1.0.1.RELEASE</version>
</dependency>

正如您在上面看到的,我将这些防火墙添加到了项目中,并且还将spring boot版本更改为2.0.3。RELEASE

============================
CONDITIONS EVALUATION REPORT
============================


Positive matches:
-----------------

    AopAutoConfiguration matched:
        - @ConditionalOnClass found required classes 'org.springframework.context.annotation.EnableAspectJAutoProxy', 'org.aspectj.lang.annotation.Aspect', 'org.aspectj.lang.reflect.Advice', 'org.aspectj.weaver.AnnotatedElement'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)
        - @ConditionalOnProperty (spring.aop.auto=true) matched (OnPropertyCondition)

    AopAutoConfiguration.CglibAutoProxyConfiguration matched:
        - @ConditionalOnProperty (spring.aop.proxy-target-class=true) matched (OnPropertyCondition)

    CacheAutoConfiguration matched:
        - @ConditionalOnClass found required class 'org.springframework.cache.CacheManager'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)

.
.
.

'javax.transaction.TransactionManager', 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)


Negative matches:
-----------------

    ActiveMQAutoConfiguration:
        Did not match:
            - @ConditionalOnClass did not find required classes 'javax.jms.ConnectionFactory', 'org.apache.activemq.ActiveMQConnectionFactory' (OnClassCondition)

    AopAutoConfiguration.JdkDynamicAutoProxyConfiguration:
        Did not match:
            - @ConditionalOnProperty (spring.aop.proxy-target-class=false) did not find property 'proxy-target-class' (OnPropertyCondition)

    ArtemisAutoConfiguration:
        Did not match:
            - @ConditionalOnClass did not find required classes 'javax.jms.ConnectionFactory', 'org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory' (OnClassCondition)
.
.
.   


    WebSocketServletAutoConfiguration.UndertowWebSocketConfiguration:
        Did not match:
            - @ConditionalOnClass did not find required class 'io.undertow.websockets.jsr.Bootstrap' (OnClassCondition)


Exclusions:
-----------

    org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration

    org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration


Unconditional classes:
----------------------

    org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration

    org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration

    org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration

    org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration

    org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration



2018-07-06 11:48:08,892 ERROR o.s.b.SpringApplication Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exchangeCacheRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
ory.support.DefaultListableBeanFactory.getBeansOfTy
    at 
Process finished with exit code 1

0 个答案:

没有答案