package com.northglass.web.manage;
|
|
import java.util.HashMap;
|
import java.util.Map;
|
|
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletResponse;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import com.northglass.service.TelecomsService.TelecomsService;
|
|
import net.sf.json.JSONObject;
|
|
@Controller
|
@RequestMapping(value="/text")
|
public class CutManageController {
|
|
@RequestMapping(method=RequestMethod.GET, value="/text")
|
@ResponseBody
|
public JSONObject checkTask(HttpServletRequest request,HttpServletResponse response){
|
JSONObject jsonObj = new JSONObject();
|
Map<String,Object> map = new HashMap<String,Object>();
|
map.put("firstName", "jack");
|
jsonObj.putAll(map);
|
return jsonObj;
|
}
|
@RequestMapping(method=RequestMethod.GET, value="/paiText")
|
@ResponseBody
|
public JSONObject paiText(HttpServletRequest request,HttpServletResponse response){
|
return TelecomsService.jsonObj;
|
}
|
}
|
|