摘要: public class ServiceProxy implements InvocationHandler{ /**目标对象*/ private Object targetObj; public ServiceProxy(Object targetObj) { this.targetObj = t 阅读全文
posted @ 2020-08-10 09:56 FivePointOne 阅读(98) 评论(0) 推荐(0) 编辑
摘要: public class DaoFactory { private static Properties pro = new Properties(); static { try { pro.load(new FileReader("dao.txt")); } catch (Exception e) 阅读全文
posted @ 2020-08-10 09:54 FivePointOne 阅读(659) 评论(0) 推荐(0) 编辑
摘要: this()代表调用同一个类中的其它构造器super()用于调用父类中的构造方法 super()和this()均需放在构造方法内第一行 this()和super()都指的是对象,所以,均不可以在static环境中使用。包括:static变量,static方法,static语句块。 this和supe 阅读全文
posted @ 2020-05-20 18:39 FivePointOne 阅读(978) 评论(0) 推荐(0) 编辑