获取项目根目录(非tomact)

String path;
public void main(String[] args) {
File file=new File("");
path=file.getAbsolutePath();

syso(path);

结果:

D:svnoutorncrm-biz

原文地址:https://www.cnblogs.com/xuehen/p/4482421.html