首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Struts2 Annotation应用

2012-10-27 
Struts2 Annotation使用平时使用struts是使用xml配置的,学习使用注解使用maven的,添加依赖包??@Action(val

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!

热点排行