java.lang.IllegalStateException: The urlPatterns and value attributes are mutually exclusive.
这是因为定义的filter注解@WebFilter(value = "loginCheckFilter",urlPatterns = "/*")里的属性写错了, 把filterName写成了value, 改回来就行了:@WebFilter(filterName = "loginCheckFilter",urlPatterns="/*");
如果你也是这样的马大哈,让我知道我并不孤独。