Skip to content

Commit

Permalink
Merge pull request #63 from AlibabaCloudLandingZone/solution-fc-sts-t…
Browse files Browse the repository at this point in the history
…oken/0.0.2

solution-fc-sts-token/0.0.2
  • Loading branch information
wibud authored Jun 26, 2024
2 parents d9c8348 + 92d875a commit 6a84cc9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions solution/solution-fc-sts-token/code-example/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.68.noneautotype</version>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.51</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.io.InputStream;
import java.io.OutputStream;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.credentials.utils.AuthConstant;
import com.aliyun.fc.runtime.Context;
import com.aliyun.fc.runtime.Credentials;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.io.OutputStream;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.fc.runtime.Context;
import com.aliyun.fc.runtime.StreamRequestHandler;
import com.aliyun.oss.OSS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import java.io.OutputStream;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson2.JSON;
import com.aliyun.fc.runtime.Context;
import com.aliyun.fc.runtime.StreamRequestHandler;
import com.aliyun.openservices.log.Client;
import com.aliyun.openservices.log.ClientBuilder;
import com.aliyun.openservices.log.common.Project;
import com.aliyun.openservices.log.common.auth.Credentials;
import com.aliyun.openservices.log.common.auth.CredentialsProvider;
Expand All @@ -32,7 +31,7 @@ public void handleRequest(InputStream inputStream, OutputStream outputStream, Co
// SLS endpoint,以杭州为例
String endpoint = "https://cn-hangzhou.log.aliyuncs.com";

Client slsClient = new ClientBuilder(endpoint, credentialsProvider).build();
Client slsClient = new Client(endpoint, credentialsProvider);

// 调用OpenAPI
try {
Expand Down

0 comments on commit 6a84cc9

Please sign in to comment.