java 代码
- </bean id="baseSqlMapClient" scope="singleton"
- class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
- <property name="configLocation">
- <value>classpath:conf/ibatis/sql-map-config-all.xml</value>
- </property>
- </bean>
- </bean id="baseSqlMapClientTemplate" scope="singleton"
- class="org.springframework.orm.ibatis.SqlMapClientTemplate">
- <property name="sqlMapClient" ref="baseSqlMapClient" />
- <property name="dataSource" ref="dataSource" />
- </bean>
- </bean id="baseDaoAbstractDefination" abstract="true" scope="singleton"
- class="org.springframework.orm.ibatis.support.SqlMapClientDaoSupport">
- <property name="sqlMapClientTemplate" ref="baseSqlMapClientTemplate" />
- <//bean>
- </bean id="XXXXXXXXXXXXXDAO" parent="baseDaoAbstractDefination" class="XXX.XXX.XXXDAOImpl"/>
<property name="sqlMapClientTemplate" ref="baseSqlMapClientTemplate"></property>
<bean class="XXX.XXX.XXXDAOImpl" id="XXXXXXXXXXXXXDAO" parent="baseDaoAbstractDefination"></bean>