报错: Unsupported OkHttp library found. Must use okhttp >= 4.8.1
解决方法: 排除minio依赖的okhttp
,重新引入高版本okhttp
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>8.4.1</version>
<!--maven引入minio排除okhttp依赖并添加高版本的okhttp依赖,如okhttp 4.9.0-->
<exclusions>
<exclusion>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.9.0</version>
</dependency>