<!-- 登录验证 --> <filter> <filter-name>login-filter</filter-name> <filter-class>com.hydom.filter.LoginFilter</filter-class> </filter> <filter-mapping> <filter-name>login-filter</filter-name> <url-pattern>/person/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>login-filter</filter-name> <url-pattern>/userCenter/*</url-pattern> </filter-mapping>
参考:http://weidongke123-126-com.iteye.com/blog/1032546
.