---
title: "spring ibatis struts2 整合"
author: "zhouzhao21"
date: "2008-12-05T01:26:14Z"
tags: []
categories: ["企业架构"]
slug: "spring-ibatis-struts2"
draft: false
lastmod: "2009-03-20T11:42:38Z"
id: 287175
url: "https://kyo-cc.iteye.com/blog/287175"
---

整合 spring-2.5.6 ibatis-2.3.4.726 , struts-2.0.14 
只写要注意和改进的地方:
1. 如果使用 abator(abator-1.1.0-426) 生成一些 dao 相关的文件,应在 sqlMapConfig 中将 useStatementNamespaces 属性设置为 true.
2. 如果在 spring 的 sqlMapClient 中配置 sqlMap(可以使用通配符)而不在 ibatis 的sqlMapConfig 中配置, 则应修改 sql-map-config-2.dtd 文件( 位于 com.ibatis.sqlmap.engine.builder.xml ).
3. 如果要在 struts2 中的 include 元素中使用通配符, 则要修改类 XmlConfigurationProvider . 位于 com.opensymphony.xwork2.config.providers 包下.
我将修改后的文件和说明放在附件中.

-- 
Regards,
kyo