@Override
protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
HttpRequest request=new RequestContext(req);
HttpResponse response = new ResponseContext(resp);
String module= request.getModule();//取得调用类
String action= request.getAction(); //取得调方法
BaseAction baseAction = modules.get(module); //初始调用类
if (baseAction==null)
{
//没有找到Module 返回404
response.sendError(HttpResponse.SC_NOT_FOUND);//返回404