GitHub ISSUES
问题描述
- 根据业务提取一个公共上传文件的服务,以固定上传下载的工作。
- 抽取minio-driver时,在FileServer中引入minio-drive发生了
必须使用 okhttp >= 4.8.1问题
问题原因
- 根据github上的ISSUES可知,是
spring-boot-dependencies-2.x.x.pom中设置了 <okhttp3.version>3.14.9</okhttp3.version>,所以导致了 minio 中的 okhttp3强制降级了默认4.8.1 - FileServer项目的
pom.xml中的parent是用的spring-boot-starter-parent
问题处理
1. 在不更换parent的情况下在FileServer项目的 properties 中指定版本
<properties> <okhttp3.version>4.9.0</okhttp3.version> </properties>
2. 更换 parent
- minio-driver是 jdevelops下的子项目
- jdevelops中设置了
<okhttp3.version>4.9.0</okhttp3.version> - 示例 https://github.com/en-o/Jdevelops-Example/blob/main/file/pom.xml
<parent> <groupId>cn.jdevelops</groupId> <artifactId>jdevelops</artifactId> <version>2.0.4</version> <relativePath/> <!-- lookup parent from repository --> </parent><!-- <parent>--><!-- <groupId>org.springframework.boot</groupId>--><!-- <artifactId>spring-boot-starter-parent</artifactId>--><!-- <version>2.6.6</version>--><!-- <relativePath/> <!– lookup parent from repository –>--><!-- </parent>