为了账号安全,请及时绑定邮箱和手机立即绑定

在Springcloud的openfeign,调用服务出错

在Springcloud的openfeign,调用服务出错

Rohero 2020-04-01 01:26:40
这里是项目product ProductService.java public class ServiceController {     //test     @GetMapping("/msg")     public String getMsg() {         return "这是product里面得接口";     } } ----------------------------------------------- 这里是项目feign ProductClient.java(interface) @FeignClient(name = "product") public interface ProductClient {     @Bean     @GetMapping("/msg")     public String getMsg(); } ------------------------ ClientController.java @RestController public class ClientController {     @Autowired     private ProductClient productClient;     @GetMapping("/getMessage")     public String getMag() {         return productClient.getMsg();     } }
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1303 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信