Skip to content

Commit 8456677

Browse files
committed
SpringBoot 整合 Dubbo 使用Pinpoint做分布式跟踪
1 parent 436d537 commit 8456677

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package io.ymq.dubbo.consumer.web;
2+
3+
/**
4+
* 描述:
5+
*
6+
* @author yanpenglei
7+
* @create 2018-07-25 17:25
8+
**/
9+
import com.alibaba.dubbo.config.annotation.Reference;
10+
11+
import io.ymq.dubbo.api.DemoService;
12+
import org.springframework.web.bind.annotation.RequestMapping;
13+
import org.springframework.web.bind.annotation.RequestParam;
14+
import org.springframework.web.bind.annotation.RestController;
15+
16+
import javax.annotation.Resource;
17+
18+
@RestController
19+
public class DemoConsumerController {
20+
21+
@Resource
22+
private DemoService demoService;
23+
24+
@RequestMapping("/sayHello")
25+
public String sayHello(@RequestParam String name) {
26+
return demoService.sayHello(name);
27+
}
28+
}

0 commit comments

Comments
 (0)