1 在容器中配置数据源Tomcat 2 Spring中获取数据源3 web.xml设置数据源 MySQL DB Pool jdbc/JavaWeb javax.sql.DataSource Container
分类:
其他好文 时间:
2015-07-05 23:54:41
阅读次数:
163
1 "; 6 } 7 } 8 9 class ChildClass extends BaseClass{10 const CONST_VALUE = "A constant value";11 private static $sValue = "static Value"...
分类:
其他好文 时间:
2015-07-04 13:50:44
阅读次数:
73
1,JedisPool的使用 //WHEN_EXHAUSTED_FAIL = 0; 直接抛出异常throw new NoSuchElementException("Pool exhausted"); //WHEN_EXHAUSTED_BLOCK = 1;borrowObject()将会阻...
分类:
其他好文 时间:
2015-07-04 00:43:36
阅读次数:
245
https://leetcode.com/problems/sort-list/Sort ListSort a linked list inO(nlogn) time using constant space complexity.来自http://www.cnblogs.com/zuoyuan/p...
分类:
其他好文 时间:
2015-07-02 22:15:21
阅读次数:
149
如果要修该一个类中的某个方法一共有三种方法:继承,写一个装饰类,动态代理
这里我主要介绍装饰类:
1.写一个interface Animal
package com.itheima.pool;
public interface Animal {
public void eat();
public void bite();
}
2.写一个Dog类继承Animal接口:
pack...
分类:
其他好文 时间:
2015-07-02 10:19:54
阅读次数:
117
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 the...
分类:
其他好文 时间:
2015-07-01 22:14:05
阅读次数:
135
1 from multiprocessing import Pool 2 import os 3 def f(x): 4 print "Os is%s"%os.getpid() 5 return x*x 6 if __name__ == '__main__': 7 pool...
分类:
编程语言 时间:
2015-07-01 20:34:39
阅读次数:
141
1、常量注入方式package com.guice.ConstantInjectDemo;import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Module;
import com.google.inject....
分类:
其他好文 时间:
2015-07-01 12:16:50
阅读次数:
121
曾经在上家公司做了一个内网P2P的传输工具名曰gingko更多例子,比如:一个自定义协议的client、server等请移步github这套库的稳定性大家不用质疑,已经用在了我现在公司的上万台服务器的很多网络Daemon上欢迎加入Reboot运维开发两千人QQ群(365534424)交流探讨很早以前了,当..
分类:
编程语言 时间:
2015-07-01 06:26:45
阅读次数:
1690
Http error 503. The service is unavailable. Due to appliction pool is stop and start it can resolve itServer ErrorInternet Information Services 7.5Er....
分类:
Web程序 时间:
2015-06-29 23:35:50
阅读次数:
286