用Struts2做注解操作的时候,出现There is no Action mapped for namespace [/] and action name [test] associated with context path [/test]. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare...问题,是因为要用Struts2的注解,你还非得将action处理类放在struts, struts2, action, actions包或者其子包中。否则一定会报错!!!