调整客户端获取方式

This commit is contained in:
2023-03-14 22:23:40 +08:00
parent 5cfdcb822b
commit a8bacd0517
3 changed files with 8 additions and 3 deletions

View File

@@ -18,12 +18,17 @@
<url>http://192.168.1.13:8001/nexus/content/repositories/snapshots/</url> <url>http://192.168.1.13:8001/nexus/content/repositories/snapshots/</url>
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<developers>
<developer>
<name>hongawen</name>
<email>83944980@qq.com</email>
</developer>
</developers>
<description>灿能针对河北pms项目的华为obs组件提取的starter模块</description> <description>灿能针对河北pms项目的华为obs组件提取的starter模块</description>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>

View File

@@ -154,7 +154,7 @@ public class OBSUtil {
* @date 2023/3/1 20:56 * @date 2023/3/1 20:56
* @return InputStream * @return InputStream
*/ */
public InputStream fileDownload(String fileName) { public InputStream downloadStream(String fileName) {
ObsClient obsClient = null; ObsClient obsClient = null;
try { try {
String bucketName = huaweiObsProperties.getObs().getBucket(); String bucketName = huaweiObsProperties.getObs().getBucket();

View File

@@ -1,5 +1,5 @@
#Generated by Maven #Generated by Maven
#Thu Mar 02 13:52:05 CST 2023 #Wed Mar 08 15:30:34 CST 2023
version=1.0.0 version=1.0.0
groupId=com.njcn groupId=com.njcn
artifactId=huawei-obs-springboot-starter artifactId=huawei-obs-springboot-starter