File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
spring-boot-dubbo/dubbo-consumer/src/main/java/io/ymq/dubbo/consumer/web Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments