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