### Question:
LinksSelector extends BaseElementSelector { @Override public List<String> selectList(Element element) { Elements elements = element.select("a"); List<String> links = new ArrayList<>(elements.size()); for (Element element0 : elements) { if (!StringUtils.isBlank(element0.baseUri())) { links.add(element0.attr("abs:href")); } else { links.add(element0.attr("href")); } } return links; }  @Override Element selectElement(Element element); @Override List<Element> selectElements(Element element); @Override boolean hasAttribute(); @Override String select(Element element); @Override List<String> selectList(Element element);  }### Answer:
@Test public void test_link() throws Exception { List<String> links = linksSelector.selectList(html); System.out.println(links); html = "<div class=\"body\">\n" + " <ul class=\"clean-list\">\n" + " \n" + " <li><a href=\"/single/124\">大名鼎鼎的二叉树神级遍历Morris</a></li>\n" + " \n" + " <li><a href=\"/single/121\">Java判断两个链表是否相交，如果相交返回第一个节点</a></li>\n" + " \n" + " <li><a href=\"/single/118\">Java字符串转整型</a></li>\n" + " \n" + " <li><a href=\"/single/83\">单例模式的几种方法</a></li>\n" + " \n" + " <li><a href=\"http: " \n" + " </ul>\n"; links = linksSelector.selectList(Jsoup.parse(html, "http: System.out.println(links); }