|
@ -5,10 +5,13 @@ import org.springframework.stereotype.Controller;
|
5
|
5
|
import org.springframework.web.bind.annotation.RequestMapping;
|
6
|
6
|
import org.springframework.web.bind.annotation.ResponseBody;
|
7
|
7
|
|
|
8
|
import com.ai.ipu.basic.log.ILogger;
|
|
9
|
import com.ai.ipu.basic.log.IpuLoggerFactory;
|
8
|
10
|
import com.ai.ipu.basic.reflect.ReflectUtil;
|
9
|
11
|
import com.ai.ipu.basic.util.IpuUtility;
|
10
|
12
|
import com.ai.ipu.test.springboot.service.IBizService;
|
11
|
|
import com.ai.ipu.data.IData;
|
|
13
|
import com.ai.ipu.test.springboot.service.IpuService;
|
|
14
|
import com.ailk.common.data.IData;
|
12
|
15
|
|
13
|
16
|
/**
|
14
|
17
|
* @author huangbo@asiainfo.com
|
|
@ -18,10 +21,29 @@ import com.ai.ipu.data.IData;
|
18
|
21
|
*/
|
19
|
22
|
@Controller
|
20
|
23
|
@RequestMapping("/dubbo")
|
21
|
|
public class DubboControl {
|
|
24
|
public class DubboConsumerController {
|
|
25
|
private static final transient ILogger logger = IpuLoggerFactory.createLogger(DubboConsumerController.class);
|
|
26
|
|
22
|
27
|
@Reference
|
23
|
28
|
IBizService bizService;
|
24
|
29
|
|
|
30
|
@Reference
|
|
31
|
IpuService ipuService;
|
|
32
|
|
|
33
|
@ResponseBody
|
|
34
|
@RequestMapping("/index")
|
|
35
|
public String index(String data) {
|
|
36
|
logger.info("I am ConsumerController" + System.getProperty("user.home"));
|
|
37
|
if(data==null||"".equals(data)){
|
|
38
|
data="你啥都没有输入!";
|
|
39
|
}
|
|
40
|
|
|
41
|
logger.info("你输入的是"+data);
|
|
42
|
|
|
43
|
ipuService.genaratePlumelog(data);
|
|
44
|
logger.info("调用dubbo结束...........");
|
|
45
|
return data;
|
|
46
|
}
|
25
|
47
|
/**
|
26
|
48
|
* @author huangbo@asiainfo.com
|
27
|
49
|
* @title: callBizService
|