java imageName图片路径问题

2025年03月22日 02:24
有1个网友回答
网友(1):

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