Trying to get Patch working with my feign client. Ive added
io.github.openfeign:feign-httpclient:jar:10.2.3
to the classpath but still get an exception when trying to make the Patch call
Invalid HTTP method: PATCH executing PATCH...
Feign client method looks like this
@PatchMapping("/devices")
AppDevice patchDevice(@RequestHeader(AUTHORIZATION) String apiKey, AppDevice device);
Doubt it matters but Im using spring boot with the following in my pom
...
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
</dependency>
...