- 博客(2)
- 资源 (1)
- 收藏
- 关注
转载 转载加整理!由ClassNotFoundException: ContextLoaderServlet引出关于eclipse加载web-inf/lib问题
进行Spring整合,需要在web.xml中设置ContextLoaderListener,通过ContextLoaderListener来加载spring的配置信息,提前初始化ApplicationContext。这样在程序里只要通过WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext)就可以得到ap
2012-02-28 11:39:08 797
原创 看think in java 4th持有对象一章的Map小结,因为一个例子,重新总结下hashCode()和equals(),加深印象。
众所周之,String 、Math、还有Integer、Double。。。。等这些封装类重写了Object中的equals()方法,让它不再比较句柄(引用),而是比较对象中实际包含的整数的值,即比较的是内容。 package holding; import java.util.*; import typeinfo.pets.*; import static net.mindview.util.Print.*; public class MapOfList { public static
2011-03-03 00:07:00 587
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人