2018-08-10 14:56
@Max_Qiu 这是拦截器 if ("GET".equals(method)) {
if (StringUtils.isNotBlank(s)) {
controller.setAttr(isRestfulForwardKey, Boolean.TRUE);
controller.forwardAction(controllerKey + "/getEodekd/" + s);
return;
} else {
controller.setAttr(isRestfulForwardKey, Boolean.TRUE);
controller.forwardAction(controllerKey + "/getApp");
}
} else if ("POST".equals(method)) {
controller.setAttr(isRestfulForwardKey, Boolean.TRUE);
controller.forwardAction(controllerKey + "/postAppId");
return;
2018-08-10 14:55
@Max_Qiu 这是controller @Before(AppProxyInterceptor.class)
@ActionKey("/api/appProxy")
public void getApp() {
String id = this.getPara();
// 获取前台json
JSONObject json = JSONObject.parseObject("pagingModel");
// 解析下一层
JSONObject pagingData = json.getJSONObject("pagingData");
JSONObject sortData = json.getJSONObject("sortData");
JSONArray filterData = json.getJSONArray("filterData");
2018-08-10 14:54
@Max_Qiu me.add("/appProxy", AppProxyController.class);
me.add("/model", ModelStructureController.class);这是路由
2018-08-10 14:48
@Max_Qiu 本来是http://localhost/8080/ssss,这样子的url就可以,这样子的就不行,http://localhost/8080/sss/fweee,就是多用了一个/传输的参数就进不去
2018-08-10 14:46
@Max_Qiu 现在是这条url进不到我写的任何东西里面,请求一经过jfinal就报404