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

import com.excavator.rpc.service.SayService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

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

    private static final Logger logger = LoggerFactory.getLogger(SayController.class);

    @Resource
    private SayService sayService;

    @RequestMapping("/hello/{msg}")
    public String hello(@RequestParam(value = "msg", required =  false) String msg){
        String result = sayService.say(msg);
        logger.info("hello result = {}", result);

        return result;
    }
}

@@ -261,146 +261,9 @@
 ion.
-RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0Aimport org.springframework.web.bind.annotation.RestController
+*
 ;%0A%0Ai
@@ -527,22 +527,18 @@
 ;%0A%0A    @
-Reques
+Ge
 tMapping
@@ -583,54 +583,20 @@
 lo(@
-RequestParam(value = %22msg%22, required =  false)
+PathVariable
  Str

修改对SayController 中资源的定义