转自:
web.xml中Servlet中init-param的作用说明
下文讲述servlet配置中的功能说明,如下所示:
servlet中init-param属性下的值,
用于servlet的init方法时,传入参数信息将在带哦用init方法时获取
如:
springmvc org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:springmvc.xml
则为属性contextConfigLocation设置为classpath:springmvc.xml 值