首页>代码>三分钟搭建一个springboot2.0+dubbo多实例分布式项目>/dubbo-consumer/src/main/java/com/treeke/consumer/controller/HelloController.java
package com.treeke.consumer.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.alibaba.dubbo.config.annotation.Reference; import com.treeke.common.HelloService; @RequestMapping("dubbo") @RestController public class HelloController { @Reference(interfaceClass = HelloService.class) private HelloService helloService; @RequestMapping("hello") public String hello() { return helloService.hello(); } }

用你的钱办事 LV7
2022年5月30日
1150899621 LV8
2021年11月13日
Rommel LV27
2021年10月12日
vinod1213 LV12
2021年9月13日
gxpcwm LV22
2021年2月25日
18720962954 LV4
2020年10月26日
fangzhao16 LV2
2020年10月4日
simple丶余心 LV21
2020年6月23日
2847240 LV10
2020年6月1日
wqewqwewq LV10
2020年5月19日