1. config in web.xml
2. @Component
3. @WebFilter (filterName="LoginFilter", url-patterns= "/*")
1. config in web.xml
2. @Component
3. @WebFilter (filterName="LoginFilter", url-patterns= "/*")
转载于:https://www.cnblogs.com/mywy/p/5391284.html