<context-param>
<param-name>name</param-name>
<param-value>value<param-value>
</context-param>
在servlet中读取 String num = servletContext.getInitParameter("name");