Unsatisfied dependency expressed through field 'ossUtil'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.xtool.xtoolaudit.fegin.IOssUtil': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feignEncoderPageable' defined in org.springframework.cloud.openfeign.FeignClientsConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [feign.codec.Encoder]: Factory method 'feignEncoderPageable' threw exception; nested exception is java.lang.NoSuchMethodError: feign/form/MultipartFormContentProcessor.addFirstWriter(Lfeign/form/multipart/Writer;)V (loaded from jar:file:/D:/JavaProjects/xtool-audit-service/xtool-audit-1.2305.1.1.jar!/BOOT-INF/lib/feign-form-3.3.0.jar!/ by org.springframework.boot.loader.LaunchedURLClassLoader@3eee46cb) called from class feign.form.spring.SpringFormEncoder (loaded from jar:file:/D:/JavaProjects/xtool-audit-service/xtool-audit-1.2305.1.1.jar!/BOOT-INF/lib/feign-form-spring-3.8.0.jar!/ by org.springframework.boot.loader.LaunchedURLClassLoader@3eee46cb).
时间: 2024-04-28 15:21:26 浏览: 224
测试spring中的org.springframework.beans.factory.InitializingBean
根据你提供的信息,可以看出是一个 Spring Boot 项目的依赖注入错误,可能是因为缺少某个依赖项或者版本不匹配导致的。具体解决方案需要根据项目的具体情况进行诊断和排查。建议检查项目的依赖项,看看是否有冲突或者缺失,以及检查代码中是否有错误的配置或者调用。同时,也可以尝试升级相关的依赖项,或者更换成稳定版本。
阅读全文