ibatis怎样配置druid

我项目使用的ibatis连接数据库,想要使用阿里的druid监控连接池使用情况,配置文件如何配置

<!-- 引用JDBC属性的配置文件 -->
enhancementEnabled="true"
lazyLoadingEnabled="false"
maxRequests="10" maxSessions="10"
maxTransactions="10"
useStatementNamespaces="false" />








<!-- OPTIONAL PROPERTIES BELOW -->








<!-- 这里可以写多个实体的映射文件 -->
<!--  <sqlMap resource="sping-datasource.xml"/> -->
<sqlMap resource="ZhtyDeal.xml"/>

你需要在web中配置servlet吧,其他的好像没什么区别


druidView

com.alibaba.druid.support.http.StatViewServlet





druidView

/druid/*

数据源配置:

<!-- 调用set方法 -->





这样应该就可以了,也有很多其他的属性