赞
踩
<filter-name>**Filter</filter-name>
<filter-class>*Filter</filter-class>
<init-param>
<param-name>URL</param-name>
<param-value>http://localhost:7005</param-value>
</init-param>
</filter>`
获取 init-param结点的值
@Override
public void init(FilterConfig filterConfig) throws ServletException {
System.out.println("init()...............");
this.URL = filterConfig.getInitParameter("URL");
System.out.println("URL:" + URL);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。