2020-08-23

2020-08-23  本文已影响0人  宁夏的流星

public static Object execList(String controllerName

, Map param, HttpServletRequest req

, HttpServletResponse rep)throws Exception {

Map env =new HashMap<>();

env.put("param",param);

env.put("req",req);

env.put("rep",rep);

CRUDFactory crudFactory = CRUDContext.getInstance().getFactoryByControllerName(controllerName);

AstTree astTree = crudFactory.getAstTreeByMethod(ApiUtil.METHOD_LIST);

Runtime runtime =new Runtime(astTree,env);

return runtime.run();

}

上一篇 下一篇

猜你喜欢

热点阅读