Feat: 从指定 url 获取 HTML 文件
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package cn.hezhaohui.fund.util;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class WebUtilTest {
|
||||
|
||||
@Test
|
||||
void getContentByUrl() {
|
||||
String content = WebUtil.getContentByUrl("https://fund.eastmoney.com/001068.html");
|
||||
System.out.println(content);
|
||||
Assert.notNull(content);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user