报错内容如下,不是很理解为什么会产生,求助! 2023-03-09 08:46:48.393 WARN 11940 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 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.NoSuchMethodError: org.apache.commons.lang.ArrayUtils.isNotEmpty([Ljava/lang/Object;)Z 2023-03-09 08:46:48.408 ERROR 11940 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
io.seata.spring.annotation.scannercheckers.PackageScannerChecker.addScannablePackages(PackageScannerChecker.java:48)
The following method did not exist:
org.apache.commons.lang.ArrayUtils.isNotEmpty([Ljava/lang/Object;)Z
The method's class, org.apache.commons.lang.ArrayUtils, is available from the following locations:
jar:file:/D:/respository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar!/org/apache/commons/lang/ArrayUtils.class
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
这是错误Spring Boot应用程序的上下文初始化报的,根据错误信息,似乎是缺少Apache Commons Lang库的某些类或方法。具体来说,它似乎缺少“org.apache.commons.lang.ArrayUtils.isNotEmpty(Object[])”方法。