我正在使用google-http-client来执行PATCH请求。但是失败,并出现以下异常
HTTP method PATCH not supported
at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:69)
at com.google.api.client.http.javanet.NetHttpTransport.buildRequest(NetHttpTransport.java:133)
at com.google.api.client.http.javanet.NetHttpTransport.buildRequest(NetHttpTransport.java:62)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:872)
我检查了一下,已经解决了一个问题 https://github.com/googleapis/google-http-java-client/issues/167 但是我仍然会收到此错误。我正在使用以下依赖项
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.http-client/google-http-client -->
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
<version>1.27.0</version>
</dependency>
有没有机构成功将PATCH与任何Google http客户端版本配合使用?