Spring Cloud Feign使用遇到应用无法启动
-
本人遇到的原因是微服务的名称中含有下划线导致其无法启动
-
//此处 SERVICE_MEASUREPOINT 使用了下划线,会导致微服务启动不了 @FeignClient("SERVICE_MEASUREPOINT") @RequestMapping("/mpService") @Component public interface MpSubscribeFeign { @RequestMapping(value = "/saveMpAccumulatedData", method = RequestMethod.POST) void sendDataToMp(VoToMpData voToMpData); }