[英]Reading a json file from local path by bufferedReader to construct a html file
[英]Reading html from local html file with HTMLUNIT
我正在尝试加载我下载的本地html文件。 有人知道怎么做这个吗? 我目前正在获取状态码[404]。
这就是我的做法
HtmlPage htmlPage=webClient.getPage("file:\\\\Users\\njd202\\Desktop\\zipmeupbich\\springbootmongodb\\src\\main\\resources\\downloadedfiles\\Cuban2.html") ;
在这里做了一个简短的测试,对我来说很好。
webClient.getPage("file:\\\\C:\\Users\\me\\Desktop\\htmlunit\\test.html"
请检查您是否
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.