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

在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 关注
  • 1387 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号