摘要:
这代表了web容器启动的时候会首先进入ContextLoaderListener这个类,并且之后会去加载classpath下的applicationContext.xml文件。那么重点就在ContextLoaderListener上,点开源码: 里面主要为ServletContextListener 阅读全文
摘要:
本文是基于对 http://www.cnblogs.com/aigongsi/archive/2012/04/01/2429166.html 这篇文档的理解 volatile 用volatile修饰的变量,线程在每次使用变量的时候,都会读取主内存也就是堆内存中最新值。 解读下面代码运行结果为什么可能 阅读全文