下載apache-maven-3.5.0.zip包,并解壓
打開idea開發工具
點擊File->new->Project

創建一個新的專案

選擇maven專案,直接下一步,起個名字叫day01,點擊完成就可以

然后點擊左上角File

點擊Settings

然后點擊Apply
配置好了之后打開你的pom.xml檔案

把pom檔案里的所有內容洗掉,并把以下內容粘貼進去
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>day01</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>6</source>
<target>6</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<!-- jsoup HTML parser library @ https://jsoup.org/ -->
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.13.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.7</version>
</dependency>
</dependencies>
</project>
然后pom檔案會提示你重繪

等待重繪完成,,,
然后把群里的檔案粘貼到java檔案夾內

然后右鍵BiAn,點擊run即可運行

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/323405.html
標籤:其他
上一篇:haproxy 負載均衡
