解决springboot集成minio报错:The following method did not exist: okhttp3.RequestBody.create([BLokhttp3

报错信息:

首先是一条警告提醒:

2024-07-18 16:19:51.789 WARN 30592 --- [  restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'minioService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'minioClient' defined in class path resource [com/liu/minio/MinioConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.minio.MinioClient]: Factory method

你可能感兴趣的:(springboot组件专题,spring,boot,java,spring,minio)