1. 当前工程路径
System.getProperty("user.dir")
相关文章:https://blog.csdn.net/chaofanwei/article/details/15498383
2. 当前类所在的classpath路径
getClass().getResource( "" ).getFile()
3.工程所有的classpath路径
System.getProperty( "java.class.path" )
1. 当前工程路径
System.getProperty("user.dir")
相关文章:https://blog.csdn.net/chaofanwei/article/details/15498383
2. 当前类所在的classpath路径
getClass().getResource( "" ).getFile()
3.工程所有的classpath路径
System.getProperty( "java.class.path" )