读书人

Struts2 Annotation应用

发布时间: 2012-10-27 10:42:26 作者: rapoo

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!

读书人网 >编程

热点推荐