上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 69 下一页

maven构建顺序

摘要: 依赖: target-war A-1.0.0 项目: target-war A-1.0.0 如果A-1.0.0仓库里有,会找仓库的;仓库找不到,再编译本地的项目install 阅读全文
posted @ 2021-01-20 16:11 silyvin 阅读(306) 评论(0) 推荐(0) 编辑

maven overlays 传递性【yetdone】

摘要: A-war B 依赖G-war overlays G 那么最终G不会打入war中 发现问题: A-war G-war non overlays G G的资源文件也给打进去了 有一种可能war依赖war时,文件可能不需要overlays,直接进去 阅读全文
posted @ 2021-01-15 13:03 silyvin 阅读(151) 评论(0) 推荐(0) 编辑

当动态代理遇到ioc (四)真正的cglib

摘要: 0 当动态代理遇到ioc (二)cglib 中的代理仍然不能切子函数,所以有本篇 1 此前已经解决cglib与asm冲突:当动态代理遇到ioc (三)cglib与asm jar包冲突 2 事务的try catch模型由exception扩叨叨throwable 3 抽象层 由于我们反射调用方法时,不 阅读全文
posted @ 2021-01-05 18:01 silyvin 阅读(244) 评论(0) 推荐(0) 编辑

当动态代理遇到ioc (三)cglib与asm jar包冲突

摘要: 1 目的:当动态代理遇到ioc (二)cglib 将事务中控迁移到cglib 2 现象:Exception: java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter overrides final method visi 阅读全文
posted @ 2021-01-05 17:33 silyvin 阅读(1568) 评论(0) 推荐(0) 编辑

匿名野线程池导致oom

摘要: 1 背景 1.1 生产环境几次所有操作出现 [java.lang.RuntimeException: java.lang.OutOfMemoryError: Failed creating thread: pthread_create() failed, maxproc limit reached] 阅读全文
posted @ 2020-12-16 11:28 silyvin 阅读(576) 评论(0) 推荐(0) 编辑

临时cookie与磁盘cookie

摘要: 背景: 接一次使用jmap评估是否可以把类似session信息挂靠在某未知框架的某暴露对象上 挂载在app session上的东西,浏览器关掉之后就没了,又创建了一个session,这里其实有session泄漏 再看cookie,关掉浏览器没了,所以是由于cookie丢失所致,而非session没了 阅读全文
posted @ 2020-11-22 00:24 silyvin 阅读(180) 评论(0) 推荐(0) 编辑

hash map db死锁

摘要: 对象有一个set,hibernate save时拿hashmap依次遍历入库 会导致死锁,相互等待对方update行锁 阅读全文
posted @ 2020-11-21 23:50 silyvin 阅读(79) 评论(0) 推荐(0) 编辑

mvcc巨无霸【重点】

摘要: 1 ru rc xxx val1 sac9 rc ru start sac13 xxx val2 sac13 undo1 xxx val1 sac9 update select start sac18 readview [13,18] min 13 next 19 create 13 直接返回val 阅读全文
posted @ 2020-10-13 14:03 silyvin 阅读(116) 评论(0) 推荐(0) 编辑

类加载的并发,单例模式,静态资源加载

摘要: 1 全限定类在同一个类加载器只能加载一次,意味着static对象及代码块只一次,为单例之依据 如果并发发生,则阻塞 故类的加载不存在多线程,因为只执行一次,其他线程等着加载线程,由jvm来保证线程安全性 public class ByLoad { static { try { System.out. 阅读全文
posted @ 2020-10-09 23:30 silyvin 阅读(378) 评论(0) 推荐(0) 编辑

当动态代理遇到ioc (二)cglib

摘要: 接mybatis guice 事务代理切面的代码: package sun.myproxy; import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.MethodInterceptor; import net.sf.cglib.pr 阅读全文
posted @ 2020-10-07 18:26 silyvin 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 69 下一页