package com.excavator.rpc.service.consumer.controller;

import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cmonkey on 17-3-30.
 */
@RestController
public class SayController {

}

@@ -49,16 +49,301 @@
 oller;%0A%0A
+import com.excavator.rpc.service.SayService;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Value;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0A
 import o
@@ -398,16 +398,51 @@
 oller;%0A%0A
+import javax.annotation.Resource;%0A%0A
 /**%0A * C
@@ -521,10 +521,394 @@
 ller %7B%0A%0A
+    private static final Logger logger = LoggerFactory.getLogger(SayController.class);%0A%0A    @Resource%0A    private SayService sayService;%0A%0A    @RequestMapping(%22/hello/%7Bmsg%7D%22)%0A    public String hello(@RequestParam(value = %22msg%22, required =  false) String msg)%7B%0A        String result = sayService.say(msg);%0A        logger.info(%22hello result = %7B%7D%22, result);%0A%0A        return result;%0A    %7D%0A
 %7D%0A

add /hello for rest ful resources