- 博客(4)
- 资源 (9)
- 收藏
- 关注
原创 spring FactoryBean 和 BeanFactory 的区别
Spring的BeanFacotry是一个类工厂,使用它来创建各种类型的Bean,最主要的方法就是getBean(String beanName),该方法从容器中返回特定名称的Bean。FactoryBean 是其中的一种特殊Bean,一个Bean 要想成为FacotryBean,必须实现FactoryBean 这个接口。FactoryBean定义了三个接口方法: 1
2015-01-28 23:24:03 558
原创 dbcp 连接 postgresql 报org.postgresql.jdbc4.Jdbc4Statement.setQueryTimeout(int)
Caused by: org.postgresql.util.PSQLException: 这个 org.postgresql.jdbc4.Jdbc4Statement.setQueryTimeout(int) 方法尚未被实作。at org.postgresql.Driver.notImplemented(Driver.java:753)at org.postgresql.jdbc2.Ab
2015-01-21 16:07:00 7986 1
原创 获取路径文件名称
private static final String FOLDER_SEPARATOR = "/";public static String getFilename(String path) { if (path == null) { return null; } int separatorIndex = path.lastIndexOf(FOLDER_SEPARATOR)
2015-01-16 23:49:37 362
原创 获取默认ClassLoader方法
public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } catch (Throwable ex) { // Cannot access thread con
2015-01-16 23:34:52 630
I/O 和管道进程通信
2009-10-15
Fiddler (Http内容查看工具)
2009-04-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人