获取连接, 释放连接 导入mysql driver, 导入druid连接池,导入Dbutils(queryRunner) druid连接db 注意点: 正确的 String sql = "insert into t_book( ,`author price sales stock img_path` ...
分类:
数据库 时间:
2020-05-03 10:41:57
阅读次数:
80
T1:人生
T2:赢家(winner)
T3:黑红兔
明明不是什么都做不到 ...
分类:
其他好文 时间:
2020-05-02 18:45:20
阅读次数:
46
Description 在美丽的玄武湖畔,鸡鸣寺边,鸡笼山前,有一块富饶而秀美的土地,人们唤作进香河。相传一日,一缕紫气从天而至,只一瞬间便消失在了进香河中。老人们说,这是玄武神灵将天书藏匿在此。 很多年后,人们终于在进香河地区发现了带有玄武密码的文字。更加神奇的是,这份带有玄武密码的文字,与玄武湖 ...
分类:
其他好文 时间:
2020-05-02 18:33:55
阅读次数:
48
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:
其他好文 时间:
2020-05-02 15:11:59
阅读次数:
52
/** * 堆通常是一个可以被看做一棵树的数组对象。 * 堆总是满足下列性质: * \t 堆中某个节点的值总是不大于或不小于其父节点的值; * \t 堆总是一棵完全二叉树。 * 将根节点最大的堆叫做最大堆或大根堆,根节点最小的堆叫做最小堆或小根堆 */public class MaxHeap { p ...
分类:
其他好文 时间:
2020-05-02 10:07:04
阅读次数:
60
In this tutorial, we will extend last Maven + Spring hello world example by adding JDBC support, to use Spring + JDBC to insert a record into a custom ...
分类:
数据库 时间:
2020-05-02 09:43:18
阅读次数:
61
目录 "设计模式——抽象工厂模式" "1. 模式简介" "2. 示例1 使用工厂模式实现对不同数据库的操作" "3. 示例2 多数据库且多表操作" "4. 重构示例2 使用简单工厂改进抽象工厂" "5. 重构示例2 反射+简单工厂" "6. 重构示例2 反射+配置文件+简单工厂" shanzm 20 ...
分类:
其他好文 时间:
2020-05-02 00:16:49
阅读次数:
77
# coding:utf8 class Queue(): def __init__(self): self.items = [] def enqueue(self, item): self.items.insert(0, item) def dequeue(self): return self.it ...
分类:
其他好文 时间:
2020-05-02 00:06:02
阅读次数:
60
# coding:utf8#节点类 class Node(): def __init__(self, _item): self.item = _item self.next = None #链表类 class Link(): def __init__(self): self._head = None ...
分类:
编程语言 时间:
2020-05-01 23:49:45
阅读次数:
81
1. JPA核心API对象 1.1.Persistence持久化对象 Persisitence主要用于创建EntityMangerFactory,它可以根据传入的持久化单元名称来创建对应的EntityMangerFactory。 // 对应配置文件里面的persistence-unit name=" ...
分类:
编程语言 时间:
2020-05-01 23:46:00
阅读次数:
74