解决方法: 在struts.xml中,在<global-exception-mappings>前面加上如下内容: <global-allowed-methods>regex:.*</global-allowed-methods> 如图: