我要得到相对路径呢?
我用以下方法却出错.
String path=req.getServletPath();
File file=new File(path,"hello.txt");
DataOutputStream fout=new DataOutputStream
(new FileOutputStream(file));
fout.write(...);
fout.close();
我用以下方法却出错.
String path=req.getServletPath();
File file=new File(path,"hello.txt");
DataOutputStream fout=new DataOutputStream
(new FileOutputStream(file));
fout.write(...);
fout.close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货