用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包或者其子包中。否则一定会报错!!!
at com.opensymphony.xwork2.DefaultActionProxy.prepare...问题,是因为要用Struts2的注解,你还非得将action处理类放在struts, struts2, action, actions包或者其子包中。否则一定会报错!!!
本文解决使用Struts2注解操作时遇到的配置错误问题,强调action处理类必须位于特定包中,否则会导致无法映射的错误。
745

被折叠的 条评论
为什么被折叠?



