2017/02/23Ssh整合(单表):struts2+spring+hibernate效果contextloaderlistener配置文 件在web-inf下修改配置文件ApplicationcontextStrutsHibernate.Cfg.xmlUser.hbm .xmlUserdaoimpl配置文件导进去修改路径修改impl类(修改sql语句,用hibernate代替)数据库存不进去:(提 交事务)交权(spring要收权)事务(基于注解)在service里面2017/02/28Excel表格导出导包设置导入导出的按钮 重定向到struts配置文件在controller的personaction文件上修改Excel表格的导入在界面上写导入按钮(验证 )定向到struts的配置文件personaction控制文件中(注意!)记得写文件名和文件的returnWeb的配置文件 |
|