赞
踩
- 1.启动类没有添加@EnableFeignClients 注解
-
- 2.client 请求方式不一致,比如消费方定义为POST,服务方定位为GET
-
- 3.接口返回参数未定义,比如定位返回结果为ResponseEntity,feign 无法识别,需要定义完整的返回类型,比如ResponseEntity<String>
-
- 4.返回数据中多对一实体中还包含了一对多的关系也会返回null
- 例如查询product表中,多对一producttype类型实体反向包含了一对多productlist
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。