springboot用feign发送RequestParam
可以,发送RequestBody
报java.lang.NoSuchFieldError: MULTIPART_RELATED
错误
照着好多帖子试了都不行,最后发现是万恶的版本问题,spingboot和feign版本不匹配,按照https://www.jianshu.com/p/29f88c65801c修改了版本
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.12.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
...
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.0.2.RELEASE</version>
</dependency>