- 博客(7)
- 资源 (3)
- 收藏
- 关注
原创 SSH2整合报错:java.lang.ClassNotFoundException: org.springframwork.web.context.Contex
今天整合SSH2,运行报错:java.lang.ClassNotFoundException: org.springframwork.web.context.ContextLoaderListener 从网上查询了二个原因:1,缺少pring-web.jar或者sping.jar及其依赖包 2,需将所有包拷贝到web-info下的lib中 均未能解决我的问题。 下面我贴出我的报错请各位大神...
2015-04-11 20:20:10 282
原创 请写出线程执行结果
public class ThreadEg implements Runnable { @Override public void run() { try{ Thread.sleep(1000); }catch(InterruptedException e){ e.printStackTrace(); } System.out.pr...
2014-07-10 16:04:56 87
原创 JAVA趣味题
有次遇到这个题,不知道结果是什么,特记录一下。 分析代码在堆栈中的分配图: private String s=new String("abc"); private static String s=new String("def");
2014-07-10 15:47:23 308
原创 java类中的执行顺序
请指出执行结果,按顺序写出: public class ClassLoaderSequence { private String instanceS ="实例变量instanceS初始化"; private static String S="实例变量S初始化"; public ClassLoaderSequence(){ System.out.println("构造函...
2014-07-10 15:44:00 95
原创 java趣味题
long time = 24*60*60*1000; long milistime=24*60*60*1000*1000; System.out.println(milistime/time); System.out.println(2.00-1.10); 上面的代码段会输出什么? 1000 0.9 ? NO!应该是: 5 0.8999999999999999 但是为什么...
2014-07-10 15:28:04 346 1
原创 Spring笔记一 Spring引入快捷提示(手动添加schema)
手动添加schema方法如下: windows->preference->myeclipse->file and editers->xmlcatalog点击“add”,在出现的窗口中的key Type中选择URL,在location中选择“File system”,然后再spring解压目录的dist/resouces目录中选择spring-beans-2.5xsd,回到设置窗口时应把key T...
2014-05-18 19:22:06 235
原创 严重: Exception sending context initialized event to listener instance of class org.springframework.we
搭建S2SH环境后,起tomcat时报错,查了半天也没搞定,请高手们指点!!! 报错信息如下: 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoSu
2012-05-09 10:21:18 1113 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人