`
myl3017
  • 浏览: 3649 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
今天整合SSH2,运行报错:java.lang.ClassNotFoundException: org.springframwork.web.context.ContextLoaderListener 从网上查询了二个原因:1,缺少pring-web.jar或者sping.jar及其依赖包  2,需将所有包拷贝到web-info下的lib中  均未能解决我的问题。 下面我贴出我的报错请各位大神帮忙。 详细报错如下: 2015-4-11 20:07:39 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Ap ...
public class ThreadEg implements Runnable { @Override public void run() { try{ Thread.sleep(1000); }catch(InterruptedException e){ e.printStackTrace(); } System.out.println(Thread.currentThread().getName()+"运行结束"); } public static void main(String[] args) throws Inte ...

JAVA趣味题

    博客分类:
  • java
有次遇到这个题,不知道结果是什么,特记录一下。 分析代码在堆栈中的分配图: private String s=new String("abc"); private static String s=new String("def");
请指出执行结果,按顺序写出: public class ClassLoaderSequence { private String instanceS ="实例变量instanceS初始化"; private static String S="实例变量S初始化"; public ClassLoaderSequence(){ System.out.println("构造函数ClassLoaderSequence运行"); } { System.out.println("方法块运行"); } ...

java趣味题

    博客分类:
  • 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 但是为什么?
手动添加schema方法如下: windows->preference->myeclipse->file and editers->xmlcatalog点击“add”,在出现的窗口中的key Type中选择URL,在location中选择“File system”,然后再spring解压目录的dist/resouces目录中选择spring-beans-2.5xsd,回到设置窗口时应把key Type改为Schemalocation ,key改为 http://www.springframework.org/schema/beans/spring-beans.xsd
Global site tag (gtag.js) - Google Analytics