Compare commits
2 Commits
eafc41614c
...
01f0092474
Author | SHA1 | Date |
---|---|---|
|
01f0092474 | |
|
e7a8a8b50d |
7
pom.xml
7
pom.xml
|
@ -8,6 +8,13 @@
|
||||||
<artifactId>LearningPoject</artifactId>
|
<artifactId>LearningPoject</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jsoup</groupId>
|
||||||
|
<artifactId>jsoup</artifactId>
|
||||||
|
<version>1.17.2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
package com;
|
package com;
|
||||||
|
|
||||||
|
|
||||||
|
import org.jsoup.Jsoup;
|
||||||
|
import org.jsoup.nodes.Document;
|
||||||
|
import org.jsoup.nodes.Element;
|
||||||
|
import org.jsoup.select.Elements;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.net.URLEncoder;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description:
|
* @description:
|
||||||
|
@ -9,20 +18,17 @@ import java.util.ArrayList;
|
||||||
* @time: 2025/1/13 11:08
|
* @time: 2025/1/13 11:08
|
||||||
*/
|
*/
|
||||||
public class aa {
|
public class aa {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) throws IOException {
|
||||||
|
try {
|
||||||
ArrayList<String> integers = new ArrayList<>();
|
Document doc = Jsoup.connect("http://172.20.105.172/syjcDist/realTimeDataManage/dailyReporting")
|
||||||
integers.add("1");
|
.userAgent("Mozilla")
|
||||||
integers.add("2");
|
.cookie("SJ_TOKEN","6c3c3854-1bd9-476f-b872-de0f3dabbc27")
|
||||||
integers.add("3");
|
.timeout(5000)
|
||||||
integers.add("4");
|
.get();
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
System.out.println(doc);
|
||||||
for (String integer : integers) {
|
}catch (Exception e){
|
||||||
stringBuilder.append(integer);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
System.out.println(stringBuilder);
|
|
||||||
System.out.println("在来一次分支提交develop代码");
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue