incubator-seata
incubator-seata copied to clipboard
seata1.5.2和jdk18搭配使用会有seata中GlobalTransactionScanner无法实例化问题
Seat搭建后,启动springboot报这个错,用的是jdk18 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalTransactionScanner' defined in class path resource [io/seata/spring/boot/autoconfigure/SeataAutoConfiguration.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 java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.18.jar:5.3.18] 换成jdk1.8后,springboot可以正常启动
https://github.com/seata/seata/pull/4877
https://github.com/seata/seata/issues/4864
同样的问题 jdk17 也不行 只能是 jdk11 了