java取得web的根路径

java获得web的根路径????getClass().getProtectionDomain().getCodeSource().getLocation().getPath()!-

java获得web的根路径
????getClass().getProtectionDomain().getCodeSource().getLocation().getPath();

<!--EndFragment-->