java imageName图片路径问题

2025-03-22 02:24:50
推荐回答(1个)
回答1:

用System.getProperty("user.dir")+"相对的路径" 即可, 或者直接 getInstance("images/image-left.jpg");试试