xxl-crawler icon indicating copy to clipboard operation
xxl-crawler copied to clipboard

使用HtmlUnitPageLoader加载的页面获取不到当前页面url

Open minggen opened this issue 5 years ago • 0 comments

Document html = Jsoup.parse(pageAsXml);

返回的html没有baseurl,后期使用获取不到,如图

手工set了一下

Document html = Jsoup.parse(pageAsXml);
html.setBaseUri(pageRequest.getUrl());

minggen avatar Mar 09 '19 03:03 minggen