大清早struts2的配置文件報錯The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action
意思是我在配置文件中:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
的順序有問題,仔細檢查了一遍也沒發現有什么錯誤,想想是不是action里面的順序有問題,(action里面的順序是可以任意放的)最終刷新了一下頁
面好了,是IDE在作怪吧,記錄一下,以防下次再遇到。