String path = jsoupDemo.class.getResource("/index.html").getPath();
System.out.println(path);//打印获取到的路径打印是可以找打路径的
结果是 D:/ideawork/myproject/web_day42_jsoup%e7%88%ac%e8%99%ab/target/classes/index.html
File file = new File(path);
Document dom = Jsoup.parse(file, "utf-8");
System.out.println(dom);
为什么解析不到index.html中的内容