时间:2022-11-13 10:14:46 | 栏目:JAVA代码 | 点击:次
@FeignClient(name= "eureka_client") public interface TestInterface { @GetMapping(value = "/get") String get(); }
feign不支持"_",改成"-"即可
name= "eureka-client"
spring.application.name=eureka-client
这是SpringCloud中Feign常见的错误