1、添加依赖
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-jaxrs</artifactId>
<version>9.7.0</version>
</dependency>
2、更改协议
Feign.Builder builder =Feign.builder();
builder.contract(new JAXRSContract());
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-jaxrs</artifactId>
<version>9.7.0</version>
</dependency>
Feign.Builder builder =Feign.builder();
builder.contract(new JAXRSContract());