struts2配置 web.xml里面需不需要
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
我看到有些要有些不要。
但是我写了就报错
cvc-complex-type.2.4.a: Invalid content was found starting with element 'dispatcher'. One of '{"http://
java.sun.com/xml/ns/javaee":url-pattern, "http://java.sun.com/xml/ns/javaee":servlet-name}' is
expected.
需要将web改成2.4才没有报错。必须要2.4吗?