../img 的意识是当前目录的上级目录的img目录
public class $ { public static void main(String[] args) { String path = System.getProperty("user.dir") + "/src/html/email.html"; System.out.println(path); }}动态获取路径