java 文件获得项目的路径
URL url = this.getClass().getResource("");
try{
//需要根据实际情况写http://www.cnblogs.com/
String path = new File(url.getPath(),"http://www.cnblogs.com/").getCanonicalPath();
}catch(Exception e){
}
URL url = this.getClass().getResource("");
try{
//需要根据实际情况写http://www.cnblogs.com/
String path = new File(url.getPath(),"http://www.cnblogs.com/").getCanonicalPath();
}catch(Exception e){
}