Struts2 Annotation使用
平时使用struts是使用xml配置的,学习使用注解
使用maven的,添加依赖包
?
?
@Action(value="Welcome", results={@Result(name="success",location="pages/welcome_user.jsp")})public String login() { return SUCCESS; }?
例子见下面链接:
?
http://www.mkyong.com/struts2/struts-2-hello-world-annotation-example/
1 楼 canuo 2012-05-06 求demo!