|
@@ -2,9 +2,10 @@ package com.xt.dsp.controller;
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
@Controller
|
|
|
-@RequestMapping("index")
|
|
|
public class IndexCtl {
|
|
|
|
|
|
/**
|
|
@@ -12,8 +13,15 @@ public class IndexCtl {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("")
|
|
|
+ @RequestMapping("index")
|
|
|
public String main() {
|
|
|
return "global/index";
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping("callback")
|
|
|
+ @ResponseBody
|
|
|
+ public String testCallback(@RequestParam(name = "ID") String ids) {
|
|
|
+ System.err.println("ids:" + ids);
|
|
|
+ return "1";
|
|
|
+ }
|
|
|
}
|