摘要: CglibAopProxy类第688行:new CglibMethodInvocation(proxy, target, method, args, targetClass, chain, methodProxy).proceed(); 参数 chain:拦截器链,保含了目标方法的所有切面方法 ,从 阅读全文
posted @ 2019-05-04 21:29 ……… 阅读(2472) 评论(0) 推荐(0) 编辑
摘要: 1.让程序阻塞(抛出异常会导致程序结束,所以在抛出异常之前阻塞) 2. windows控制台 cd到jdk目录下的lib目录,找到sa-jdi.jar 执行: java -classpath sa-jdi.jar "sun.jvm.hotspot.HSDB" 出现如下窗口: 点File—>Attac 阅读全文
posted @ 2019-03-29 17:16 ……… 阅读(3010) 评论(0) 推荐(1) 编辑
摘要: 1 import com.zkn.newlearn.gof.proxyhandler.PersonInter; 2 import java.lang.reflect.InvocationHandler; 3 import java.lang.reflect.Method; 4 import java 阅读全文
posted @ 2018-03-09 12:33 ……… 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: 10个人围成一圈,从1到10编号,从1开始数,数到3或3的倍数的位置,则该位置的人出局,求最后剩下哪一个号? 数组解法: 数组存放数组:a[10]存在1到10编号人 数组遍历到尾部又从头遍历:遍历数组 >内循环。设置一个外循环 >使得数组可以从头遍历,而且从1开始的的递增数字。while循环实现 数 阅读全文
posted @ 2018-03-07 08:07 ……… 阅读(319) 评论(0) 推荐(0) 编辑
摘要: transient Node<K,V>[] table; transient Set<Map.Entry<K,V>> entrySet; transient int size; transient int modCount;//扩容次数 int threshold;//阈值,超过这个值就扩容 fin 阅读全文
posted @ 2018-03-05 19:26 ……… 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.tomcat安装版安装,把server.xml中”localhost“改为自己的域名。启动tomcat的时候就通过外网访问到云服务器的tomcat主页。 2.上述实现的前提是已经对域名进行解析:域名 >云主机外网ip 3.idea打包项目成war放到tomcat 的webapps目录下,打包常错 阅读全文
posted @ 2018-02-20 00:32 ……… 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 刚注册,不知道些什么。 阅读全文
posted @ 2017-12-26 12:34 ……… 阅读(124) 评论(0) 推荐(0) 编辑