浏览 3290 次
锁定老帖子 主题:ibatis的连接池如此配置就可以了吗?
该帖已经被评为新手帖
|
|
---|---|
作者 | 正文 |
发表时间:2008-03-09
<sqlMapConfig> <properties resource="config.properties"/> <transactionManager type="JDBC"> <dataSource type="simple"> <property value="${driver}" name="JDBC.Driver"/> <property value="${url}" name="JDBC.ConnectionURL"/> <property value="${username}" name="JDBC.Username"/> <property value="${password}" name="JDBC.Password"/> <property name="Pool.MaximumActiveConnections" value="10"/> <property name="Pool.MaximumIdleConnections" value="5"/> <property name="Pool.MaximumWait" value="10"/> <property name="Pool.MaximumCheckoutTime" value="120000"/> <property name="Pool.TimeToWait" value="500"/> <property name="Pool.PingEnabled" value="false"/> <property name="Pool.PingConnectionsOlderThan" value="1"/> <property name="Pool.PingConnectionsNotUsedFor" value="1"/> </dataSource> </transactionManager> <sqlMap resource="com/co/sm/persistence/sqlmapdao/sql/Login.xml"/> <sqlMap resource="com/co/sm/persistence/sqlmapdao/sql/AdminShop.xml"/> <sqlMap resource="com/co/sm/persistence/sqlmapdao/sql/AdminSystem.xml"/> <sqlMap resource="com/co/sm/persistence/sqlmapdao/sql/GuestIndex.xml"/> <sqlMap resource="com/co/sm/persistence/sqlmapdao/sql/Mobile.xml"/> </sqlMapConfig> 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |