您的位置:首页 > 大数据 > 人工智能

Winwebmail3.7.7.1只能发不能收的解决方法

2009-03-10 10:09 239 查看
一 加载资源,一般两种方式,class使用绝对路径,thread使用相对包路径

   URL t = Thread.currentThread().getContextClassLoader().getResource("META-INF/log4j.properties");

  InputStream in2 = Thread.currentThread().getContextClassLoader().getResourceAsStream("META-INF/log4j.properties");

   URL t1 = Bootstrap.class.getResource("/META-INF/log4j.properties");

   InputStream in =  Bootstrap.class .getResourceAsStream("/META-INF/log4j.properties");
  

 

 

 

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: