Connection connection = (Connection) dbcp.getConn(); int affectRows = qr.update(connection, sql,params); BigInteger id =...
分类:
其他好文 时间:
2014-10-28 23:43:25
阅读次数:
360
http://logger.iteye.com/blog/911977 自己总结的在android中常会出现的不好解决的问题和方法? (其中第三个方法经过了四天的折磨。。。。。哎)? 1.报错:? BUILD FAILED? D:\workspace\ganji\build.xml:144...
分类:
移动开发 时间:
2014-10-28 21:54:47
阅读次数:
345
docker? Failed to connect to socket /com/ubuntu/upstart: Connection refused 解决:You can workaround this by doing: dpkg-divert --local --rename --add /sbin/initctl ln -s /bin/true /sbin/initctl...
分类:
系统相关 时间:
2014-10-28 12:23:27
阅读次数:
286
一、Connection 类 和数据库交互,必须连接它。连接帮助指明数据库服务器、数据库名字、用户名、密码,和连接数据库所需要的其它参数。Connection对象会被Command对象使用,这样就能够知道是在哪个数据源上面执行命令。与数据库交互的过程意味着必须指明想要执行的操作。这是依靠Comman...
分类:
Web程序 时间:
2014-10-28 10:19:33
阅读次数:
207
坑这绝对是我碰计算机以来遇到的第一大坑!症状:在Linux主机上远程登录,执行一个简单的Oracle的JDBC连接程序(jar包),结果硬生生的卡在了连接建立验证阶段,然后等上几分钟后因为连接超时,连接被远端的Oracle服务器reset,于是报了connection reset exception...
分类:
数据库 时间:
2014-10-28 02:03:27
阅读次数:
177
SDK更新时的“https://dl-ssl.google.com refused”错误Download interrupted: hostname in certificate didn't match: != Download interrupted: Connection to https:....
分类:
Web程序 时间:
2014-10-27 22:48:59
阅读次数:
268
本文无太多内容,主要是几个前面提到过的注意点: 一是epoll的fd需要重新装填。我们将tcp_connection_t的指针保存在数组中,所以我们以这个数组为依据,重新装填fd的监听事件。 //重新装填epoll内fd的监听事件 int i; for(i = 0; i buffer_)) even...
分类:
系统相关 时间:
2014-10-27 21:15:38
阅读次数:
295
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
at com.mchange.v2.sql.SqlUtils.toSQLException(S...
分类:
其他好文 时间:
2014-10-27 15:37:08
阅读次数:
159
public class JDBCTest {// public static void main(String[] args) throws Exception {// Class.forName("com.mysql.jdbc.Driver");// Connection conn=Driv.....
分类:
数据库 时间:
2014-10-27 06:53:27
阅读次数:
214
上一篇文章简单介绍了数据库连接池的基本原理实现,链接:数据库连接池的简单实现
这里我们介绍两种常用数据库连接池的使用:
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