qq_35561866 2020-04-30 14:53 采纳率: 20%
浏览 7621

springboot+springcloud集成seata项目,启动项目的时候报错

springboot+springcloud集成seata项目,启动项目的时候报错,不知哪里出了问题:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalTransactionScanner' defined in class path resource [com/alibaba/cloud/seata/GlobalTransactionAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Factory method 'globalTransactionScanner' threw exception; nested exception is io.seata.common.exception.NotSupportYetException: not support register type: null

  • 写回答

1条回答 默认 最新

  • dancehall 2021-01-08 05:46
    关注

    pom文件中的seata依赖问题,在seata1.0版本之后,依赖要这样引入:

    <dependency>
        <groupId>com.alibaba.cloud</groupId>
        <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
        <exclusions>
            <exclusion>
                <groupId>io.seata</groupId>
                <artifactId>seata-spring-boot-starter</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>io.seata</groupId>
        <artifactId>seata-spring-boot-starter</artifactId>
        <version>1.4.0</version>
    </dependency>
    评论

报告相同问题?