JAVA中获取当前文件所在的路径【中文可以识别】

Thread.currentThread().getContextClassLoader().getResource("").toURI().getPath()

你可能感兴趣的:(java)