- 博客(6)
- 资源 (2)
- 收藏
- 关注
原创 父类的泛型类型
获取父类的泛型类型:import java.lang.reflect.ParameterizedType; /** * 获取父类的泛型类型 * @author Administrator */ public class GenericClass { @SuppressWarnings("rawtypes") public static Class getGenericClass(Clas
2013-06-15 12:31:43
739
翻译 beans.xml
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop"
2013-06-09 22:48:07
434
转载 java的动态代理机制
/** * 相亲接口 * * @author zhengt * @time Jun 3, 2095 3:13:03 PM */ public interface XiangQinInterface { /** * 相亲方法 */ public void xiangQin(); } /** * 张三相亲实现类 * * @author zhengt * @time J
2013-06-05 11:15:19
345
原创 HibernateUtil.java
import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; //用final修饰表示不允许继承 public final class HibernateUtil { priv
2013-06-01 15:42:04
375
原创 Event.hbm.xml和hibernate.cfg.xml
Event.hbm.xml: <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
2013-06-01 15:17:21
548
原创 SqlHelper工具类
import java.io.*; import java.sql.*; import java.util.*; public class SqlHelper { private Connection conn=null; private PreparedStatement ps=null; private ResultSet rs=null; private static String
2013-06-01 14:51:05
506
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人