You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Henry Lu <zh...@umich.edu> on 2008/04/17 15:58:38 UTC

ibatis and spring

in bean configuration file:
  <bean id="sqlMapClient" 
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
     <property name="configLocation">
       <value>sql-map-config.xml</value>
     </property>
  </bean>

Is there a way not use sql-map-config.xml file but sql-map.xml file like 
the following directly?

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE sqlMap     
    PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"     
    "http://ibatis.apache.org/dtd/sql-map-2.dtd">

<sqlMap namespace="Misc">
...
</sqlMap>

-Henry