出现这个问题的原因是OpenFeign或者Feign提供的服务接口没有被调通。
- 调用的mapper接口
@FeignClient(value = "usermanagement") public interface XUserManageFeignClient { @GetMapping(value = "/desensitizationApi/getAllDesensitizations") Map<String, XDesensitization> getAllDesensitizations(); }
- yml配置文件
spring: jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss application: name: usermanagement
- 提供的服务接口
从这三个方向查找为什么没有调通,如果调用的接口的服务没有启动肯定是不能使用的。