记录一次异常:
刚才帮一个同学弄一个阿里云对接的系统,报了一个错
解决办法:
添加guava依赖即可
“exception”:"java.lang.NoSuchMethodError: com.google.common.base.Joiner.withKeyValueSeparator©Lcom/google/common/base/Joiner$MapJoiner;\n\tat com.alibaba.cloudapi.sdk.core.util.SignUtil.buildHeaders(SignUtil.java:174)\n\tat com.alibaba.cloudapi.sdk.core.util.SignUtil.combineParamsTogether(SignUtil.java:109)\n\tat com.alibaba.cloudapi.sdk.core.util.SignUtil.sign(SignUtil.java:65)\n\tat com.alibaba.cloudapi.sdk.core.BaseApiClient.buildHttpRequest(BaseApiClient.java:187)\n\tat com.alibaba.cloudapi.sdk.core.BaseApiClient.syncInvoke(BaseApiClient.java:246)\n\tat …
刚才帮一个同学弄一个阿里云对接的系统,报了一个错
解决办法:
添加guava依赖即可
- <dependency>
- <groupId>com.aliyun.api.gateway</groupId>
- <artifactId>sdk-core-java</artifactId>
- <version>1.0.4</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.54</version>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>20.0</version>
- </dependency>
您可以选择一种方式赞助本站
支付宝扫一扫赞助
微信钱包扫描赞助
赏