手动给servletContext增长一些属性: java
servletContext.setAttribute(ApplicationConstant.AREAS, setAreas(areaDao.getAll())); servletContext.setAttribute(ApplicationConstant.SYSTEMCONFIGS, setConfigs(systemConfigDao.getAll()));