struts+spring+ibatis详细配置说明(其中一种方法)

导入所有的包

在struts-config.xml中配置
修改action中type为:org.springframework.web.struts.DelegatingActionProxy

在最后配置

applicationContext.xml配置
applicationContext.xml要放在src目录下,放在别的路径下要修改相应的路径

SqlMapConfig.xml
中的内容为:

另一个 ibatis  xml 中的内容为:主要写的是 sql语句

posted @ 2010-03-29 09:14  Horrison  阅读(323)  评论(0编辑  收藏  举报