第17讲 Spring、hibernate和Struts2的整合

时间:2022-01-12 15:09:46
【文件属性】:
文件名称:第17讲 Spring、hibernate和Struts2的整合
文件大小:1.1MB
文件格式:PPT
更新时间:2022-01-12 15:09:46
ssh java ①在web.xml中配置ApplicationContext.xml,并使用ContextLoader监听器实例化spring容器 ②把action交给spring管理,即在spring配置文件中定义action Bean并使用依赖注入功能在action中注入业务Bean,同时修改作用域。 ③在struts.xml中的class使用第②步中所定义的action Bean 的id属性值。

网友评论