Commit a9dffa95 authored by fangzhipeng's avatar fangzhipeng

完成初始化dubbo配置

parent ce191df9
...@@ -14,16 +14,16 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -14,16 +14,16 @@ import org.springframework.web.bind.annotation.ResponseBody;
*/ */
@Controller @Controller
public class MyController { public class MyController {
@Autowired @Autowired
private TestService testService; private TestService testService;
@RequestMapping(value = "/test") @RequestMapping(value = "/test")
@ResponseBody @ResponseBody
public String testSay(@RequestParam(value = "name",defaultValue = "") String name){ public String testSay(@RequestParam(value = "name",defaultValue = "") String name){
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
sb.append("Dubbo: ").append(testService.sayHello(name)); sb.append("Dubbo: ").append(testService.sayHello(name));
return sb.toString(); return sb.toString();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment