数据源一般实现自javax.sql.DataSource接口,Spring、Struts、Hibernate等框架都有自己的数据源,Tomcat中也内置了数据源支持,Tomcat使用Jakarta-CommonsDatabase Connection Pool作为数据源的实现,使用时只需按照Tomcat文档配置即可
数据源可以配置在server.xml中,也可以配置在context.xml中
...
分类:
其他好文 时间:
2015-01-17 13:57:40
阅读次数:
137
1、设置共享池大小SQL>ALTERSYSTEMSETSHARED_POOL_SIZE=32M;2、数据库高速缓冲区(databasebuffercache):SQL语句首先在数据库高速缓冲区(databasebuffercache)中搜寻所需的数据,如果找到了就直接使用而不进行磁盘操作;反之,就将...
分类:
数据库 时间:
2015-01-16 20:36:56
阅读次数:
307
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-01-16 18:22:29
阅读次数:
136
标题:Min Stack通过率:15.2%难度:简单Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x o...
分类:
其他好文 时间:
2015-01-16 16:26:28
阅读次数:
156
在程序中, 对象的识别和寻址是通过对象引用来实现的, 对象引用变量可以访问对象的属性和方法.ABAP 中的类也有程序内部的局域类和全局类之分, 其作用范围不同. ABAP中的全局类是通过ABAP工作台中的类创建工具 Class Builder 开发的, 保存在系统类库程序 Class Pool 中,...
分类:
其他好文 时间:
2015-01-16 16:17:10
阅读次数:
296
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant...
分类:
其他好文 时间:
2015-01-16 10:05:38
阅读次数:
136
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get ...
分类:
其他好文 时间:
2015-01-15 22:12:22
阅读次数:
150
小编啊,这篇博客必须上首页啊,你知道多少人不了解这两个参数吗,你知道多少人被高性能并发的性能困惑吗,OK,这一个参数将说明一切问题...
分类:
数据库 时间:
2015-01-15 18:27:22
阅读次数:
267
Sort a linked list in O(n log n)
time using constant space complexity.
MergeSort对于链表的排序,实现了就地排序的同时,时间复杂度和空间复杂度都达到了基于比较的排序的最优值,因此归并排序是链表排序的最佳排序方式。
/**
* Definition for singly-linked list.
* str...
分类:
其他好文 时间:
2015-01-15 16:01:52
阅读次数:
193
1.下载软件源wgethttp://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+wheezy_all.deb2.安装软件源dpkg-izabbix-release_2.2-1+wheezy_all.deb3.更新软件源apt-getupdate4.安装zabbix-agentapt-getinstallzabbix-agent其实debian下主要..
分类:
其他好文 时间:
2015-01-15 11:07:48
阅读次数:
174