Spring Boot整合Dubbo

This commit is contained in:
程序猿DD
2016-07-14 14:46:46 +08:00
committed by zhaiyongchao
parent b595d29c27
commit aae309df5a
3 changed files with 7 additions and 36 deletions
@@ -1,24 +0,0 @@
package com.didispace.web;
import com.didispace.service.ComputeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by zhaiyc on 2016/7/14.
*/
@RestController
public class ComputeController {
@Autowired
private ComputeService computeService;
@RequestMapping(value = "/add", method = RequestMethod.GET)
public String add(@RequestParam Integer a, @RequestParam Integer b) {
return String.valueOf(a + b);
}
}