servlet零配置文件

Dwr3.0纯注解(纯Java Code配置)配置与应用浅析一之零配置文件化

笑着哭i 提交于 2019-12-06 15:47:17
//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",