new File()获取图片地址如下: new File(System.getProperty("user.dir") + "/src/main/resources/image/picture.png")
System.getProperty("user.dir")是获取本项目地址。
new File()获取图片地址如下: new File(System.getProperty("user.dir") + "/src/main/resources/image/picture.png")
System.getProperty("user.dir")是获取本项目地址。