java 路径读取

107 阅读1分钟

src平齐目录,即project下:Paths.get(a.txt)

classpath: this.getClass().getClassLoader().getResource("")