首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Struts2+Spring+Hibernate In Action(3)

2012-10-25 
Struts2+Spring+Hibernate In Action(三)3.?????? Controller配置:Struts2的配置方法不用多说,只需要导入

Struts2+Spring+Hibernate In Action(三)

3.?????? Controller配置:

Struts2的配置方法不用多说,只需要导入相应的包后,在web.xml里配置:

            1. <bean?id="userAction"?class="com.leo.controller.UserController"??
            2. ????????scope="prototype">??
            3. ????????<property?name="userService"?ref="userService"?/>??
            4. ????bean>??

            其中userService是前面已经注册过的Service Bean了。接下来就是关于DWR的使用和发送邮件了。

            1 楼 LL的蓝 2008-03-27   从哪弄来的文章哦 XMl的<>都是错的

热点排行