springboot 集成minio,启动报错

springboot 集成 minio 8.5.10 报错 


***************************
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.minio.S3Base.<clinit>(S3Base.java:105)

The following method did not exist:

    'okhttp3.RequestBody okhttp3.RequestBody.create(byte[], okhttp3.MediaType)'

The method's class, okhttp3.RequestBody, is available from the following locations:

    jar:file:/Users/liudongyang/Desktop/download/maven-repository/repository/com/squareup/okhttp3/okhttp/3.14.9/okhttp-3.14.9.jar!/okhttp3/RequestBody.class

The class hierarchy was loaded from the following locations:

    okhttp3.RequestBody: file:/Users/liudongyang/Desktop/download/maven-repository/repository/com/squareup/okhttp3/okhttp/3.14.9/okhttp-3.14.9.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of okhttp3.RequestBody

Disconnected from the target VM, address: '127.0.0.1:51481', transport: 'socket'

Process finished with exit code 1

pom按照以下配置

<dependency>
    <groupId>io.minio</groupId>
    <artifactId>minio</artifactId>
    <version>8.5.10</version>
</dependency>

<dependency>
    <groupId>com.squareup.okhttp3</groupId>
    <artifactId>okhttp</artifactId>
    <version>4.9.1</version>
</dependency>

 

 原因:

大概率是包冲突,或者okhttp版本与minio不匹配

相关推荐

  1. SpringBoot集成Minio

    2024-07-17 18:10:01       31 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-17 18:10:01       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-17 18:10:01       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-17 18:10:01       57 阅读
  4. Python语言-面向对象

    2024-07-17 18:10:01       68 阅读

热门阅读

  1. springboot+js实现SSE消息推送

    2024-07-17 18:10:01       16 阅读
  2. 鼠标的形状

    2024-07-17 18:10:01       19 阅读
  3. 视频网站适用于什么服务器类型呢?

    2024-07-17 18:10:01       22 阅读
  4. 重要的单元测试

    2024-07-17 18:10:01       21 阅读
  5. 软件测试bug周期

    2024-07-17 18:10:01       23 阅读
  6. #if defined(WEBRTC_USE) webrtc.a的宏机制

    2024-07-17 18:10:01       17 阅读
  7. bug【创作模板】

    2024-07-17 18:10:01       19 阅读
  8. 计算机视觉6 计算机视觉---风格迁移

    2024-07-17 18:10:01       21 阅读
  9. Python 可变参数 *args 和 **kwargs 的用法

    2024-07-17 18:10:01       17 阅读
  10. 加载中的css动画

    2024-07-17 18:10:01       22 阅读