码迷,mamicode.com
首页 >  
搜索关键字:connection has timed    ( 17005个结果
开源数据库连接池的使用
上一篇文章简单介绍了数据库连接池的基本原理实现,链接:数据库连接池的简单实现 这里我们介绍两种常用数据库连接池的使用: 1.DBCP数据库连接池: package com.itheima.jdbc; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import...
分类:数据库   时间:2014-10-26 15:42:03    阅读次数:299
toastmasters(October 23, 2014)
October 23, 2014        19:00~21:00        Feishang Cafe Still vague listening, still little speaking. Nothing has been improved. Members' Speeches There were four members giving their wo...
分类:其他好文   时间:2014-10-26 14:23:31    阅读次数:201
[leetcode] Path Sum
问题描述: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree...
分类:其他好文   时间:2014-10-26 13:11:29    阅读次数:177
HDU 5083 Instruction(字符串处理)
Problem Description Nowadays, Jim Green has produced a kind of computer called JG. In his computer, the instruction is represented by binary code. However when we code in this computer, we use some m...
分类:其他好文   时间:2014-10-26 11:49:22    阅读次数:357
C3P0在多线程下的maxPoolSize配置
ETL工具完成的差不多了,今天遇到一个问题,就是给C3P0配置了maxPoolSize为10,目的是想让整个应用同时获得的最大的Connection个数为10,但是在测试应用的这一部分之后,发现PostgreSQL端的链接远远超过10个。因为工具是多线程的,所以就想,是不是多线程的问题,查了一下Connection的个数,也确实是10*线程个数。于是做了一个测试: 将maxPoolSize配置为...
分类:编程语言   时间:2014-10-26 11:43:26    阅读次数:213
关于Session【转载】
Hibernate中session的使用:在Hibernate中session主要是用来操作数据库?Hibernate在操作数据库前需要得到Session的实例,这个类似于jdbc中的Connection。获得Session的方法如下:Session session = sessionFactory...
分类:其他好文   时间:2014-10-26 10:15:49    阅读次数:201
[Leetcode] Merge Sorted Array (C++)
题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or eq...
分类:编程语言   时间:2014-10-26 00:21:33    阅读次数:216
POJ 2586 Y2K Accounting Bug(枚举大水题)
Y2K Accounting Bug Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10674   Accepted: 5344 Description Accounting for Computer Machinists (ACM) has sufferre...
分类:其他好文   时间:2014-10-25 23:04:29    阅读次数:161
java数据库连接池技术简单使用
JDBCDemo.java: package com.itheima.jdbc; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.itheima.pool.MyPool; pub...
分类:数据库   时间:2014-10-25 21:35:24    阅读次数:227
MySQL数据库学习笔记(八)----JDBC入门及简单增删改查数据库的操作
一、JDBC的引入:1、JDBC的概念:JDBC:Java Database Connection,表示数据库连接(任何数据库都支持JDBC的连接),是一个独立于特定数据库管理系统、通用的sql数据库存取和操作的公共接口。它是java中专门提供的一组用于操作数据库的标准,所有的数据库生产商如果要是想...
分类:数据库   时间:2014-10-25 21:19:22    阅读次数:403
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!