05 2015 档案
摘要:第一种: File f = new File(this.getClass().getResource("/").getPath()); System.out.println(f); 结果: C:\Documents%20and%20Settings\Administrator\workspace\p...
阅读全文
摘要:此处使用log4j,加入jar包,然后在src路径下加入:log4j.properties文件填入以下配置就可以打印了log4j.rootLogger=DEBUG,Console#Consolelog4j.appender.Console=org.apache.log4j.ConsoleAppend...
阅读全文