23 lines
683 B
Plaintext
23 lines
683 B
Plaintext
package com.nationalelectric.greenH5;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
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.ResponseBody;
|
|
|
|
import com.nationalelectirc.utils.RestResult;
|
|
|
|
@Controller
|
|
@RequestMapping("/greenTest")
|
|
public class TestController extends GreenBaseController{
|
|
|
|
|
|
@RequestMapping(value= "/test")
|
|
@ResponseBody
|
|
public RestResult test(String userName){
|
|
return new RestResult("1002",userName);
|
|
}
|
|
}
|