获取项目根目录(非tomact)
String path;
public void main(String[] args) {
File file=new File("");
path=file.getAbsolutePath();
syso(path);
}
结果:
D:\svnout\borncrm-biz
http://www.cnblogs.com/xuehen/
String path;
public void main(String[] args) {
File file=new File("");
path=file.getAbsolutePath();
syso(path);
}
结果:
D:\svnout\borncrm-biz