当前位置: 代码迷 >> Java Web开发 >> 用的IBATIS 2.3.3解决思路
  详细解决方案

用的IBATIS 2.3.3解决思路

热度:586   发布时间:2016-04-17 00:48:17.0
用的IBATIS 2.3.3
写DAO实现类,找不到SqlMapClientDaoSupport,这是什么情况?初次使用ibatis。

------解决方案--------------------
用dao来extends SqlMapClientDaoSupport
------解决方案--------------------
这个类在spring.jar里。
http://www.findjar.com/class/org/springframework/orm/ibatis/support/SqlMapClientDaoSupport.html
------解决方案--------------------
模糊记得好像是在spring-orm.jar这个里面
------解决方案--------------------
spring-orm.jar这个里面

简单点的话这么配置啊。。。
<!-- SqlMap IBatis数据源配置 -->
<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation" value="sql-map-config.xml" />
<property name="dataSource" ref="dataSource" />
</bean>
------解决方案--------------------
extends SqlMapClientDaoSupport SqlMapClientDaoSupport在spring的orm jar包中
  相关解决方案