Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 servlet 3.0,但我不能使用注释只为一个 servlet 指定过滤器?谁能帮我?
最后,我找到了这个,它正在和我一起工作
@WebFilter(filterName = "BasicFilter" , urlPatterns = {"/BasicFilter"},servletNames ={"/FilteredServlet"})