原文:调用feign接口新增用户报错xxx is not a type supported by this encoder

一个很简单的调用接口注册一个用户到系统中,但死活成功不了。找了网上好多种解决方法,感觉都比较麻烦,这是我自己测试很多次后发现的解决方法。 is not a type supported by this encoder.报错内容如下所示 调用示例 解决方案 把 PostMapping 改成 RequestMapping 并去掉 Respons注解 ...

2022-04-06 15:01 0 942 推荐指数:

查看详情

Feign二: @FeignClient 接口调用

在项目的启动文件加入:@EnableFeignClients 注解, import org.springframework.boot.SpringApplication; import org ...

Sun Sep 30 05:09:00 CST 2018 0 31845
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM