(1)Element type "元素" must be followed by either attribute specifications, ">" or "/>"
出现这个错误,是name=" "和class=" "或其它标签中间要有空格。
(2)“The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)". ”
出现这个错误是,package里面的元素有一定的顺序的。按照错误提示一样的顺序检查你的元素排序:
<result-types>
<interceptors>
<default-interceptor-ref>
<default-action-ref>
<default-class-ref>
<global-results>
<global-exception-mappings>
<action>