原因:
在入参的时候如果没有通过注解指定,此时的参数会自动封装到body中,feign检测到body里面有请求参数就会默认使用post请求。
解决方法:
解决方法也很简单,只需要在参数前加@SpringQueryMap即可
@GetMapping("/ziys/getZiyList")
RespEntity<Page<ZiyDto>> getZiyList(@SpringQueryMap ZiyDto conditions);
或者针对单个参数使用@RequestParam指定参数名
@GetMapping("/feign/dictitems/{groupKey}/item")
RespEntity<List<DictItemDto>> getDictItemListByGroupKey(@PathVariable("groupKey") String groupKey, @RequestParam("appId") String appId);