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());
本文标题:Feign使用JAXRS注解
本文链接:https://www.haomeiwen.com/subject/xmsqvhtx.html
网友评论