获取当前系统在线用户的数量
<!-- 获取当前系统在线用户的数量 -->
<filter>
<filter-name>myFilter </filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter </filter-class>
<!-- 设置能够同时在线的人数 -->
<init-param>
<param-name>count </param-name>
<param-value>1000 </param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>myFilter </filter-name>
<url-pattern>/* </url-pattern>
<!-- 代表Filter拦截的路径 -->
</filter-mapping>
<filter>
<filter-name>myFilter </filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter </filter-class>
<!-- 设置能够同时在线的人数 -->
<init-param>
<param-name>count </param-name>
<param-value>1000 </param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>myFilter </filter-name>
<url-pattern>/* </url-pattern>
<!-- 代表Filter拦截的路径 -->
</filter-mapping>