Dwr3.0纯注解(纯Java Code配置)配置与应用浅析一之零配置文件化
//Annotation configuration dwr servlet private void initializeDwrServlet(ServletContext container) { DwrServlet dwrServlet = new DwrServlet(); ServletRegistration.Dynamic dynamic = container.addServlet("dwr-invoker", dwrServlet ); dynamic.setLoadOnStartup(2); dynamic.setInitParameter("debug", "true"); dynamic.setInitParameter("pollAndCometEnabled", "true"); dynamic.setInitParameter("activeReverseAjaxEnabled", "true"); dynamic.setInitParameter("maxWaitAfterWrite", "1800000"); dynamic.setInitParameter("disconnectedTime", "60000"); dynamic.setInitParameter("classes",