cloud整合seata报错applicationId: null, txServiceGroup: default_tx_group

cloud整合seata报错applicationId: null, txServiceGroup: default_tx_group:

springcloud版本是2021.0.4.0
spring-cloud-starter-alibaba-seata版本也是2021.0.4.0
setaseata-spring-boot-starter版本是1.6.1

img

气人的是,无论我怎么配置seata都是报错:
Error creating bean with name 'globalTransactionScanner' defined in class path resource [io/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: applicationId: null, txServiceGroup: default_tx_group

img

仿佛配置的东西没有生效一样
以下是我的配置文件:

img

除了配置,模块里面就没有使用过seata的东西了,就一个主启动类

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication//取消数据源的自动创建
public class SeataOrderMainApp2001
{
    public static void main(String[] args)
    {
        SpringApplication.run(SeataOrderMainApp2001.class, args);
    }
}

你要考虑下springboot版本,不是所有版本都兼容springcloud版本的。
springcloud版本是2021.0.4.0 那么对应springboot版本为:Spring Boot >=2.4.0.M1 and <2.6.0-M1
自己对照下

img

看一下jdk版本,之前报这个错我记得是是jdk17 然后换成jdk8就可以正常使用

解决了吗,我也遇到了这个问题

你们是不对报错的吗?