maven中pom.xml引入jar包小結

來源:互聯網
上載者:User

標籤:

用maven中的pom.xml引入包非常方便,在這我就記錄一下我經常用的幾個設定,配完pom.xml後只需reimport即可(不斷更新中):

junit: 用於測試

<dependency>      <groupId>junit</groupId>      <artifactId>junit</artifactId>      <version>4.10</version>      <scope>test</scope></dependency>

 

guava:google用於最佳化java原生類的擴充包

<dependency>      <groupId>com.google.guava</groupId>      <artifactId>guava</artifactId>      <version>18.0</version></dependency>

 

log4j: 日誌相關擴充包,用system.out.print和printstacktrace在實際中是不被允許的

<dependency>          <groupId>log4j</groupId>          <artifactId>log4j</artifactId>          <version>1.2.9</version></dependency>

 

servlet:不多說,web相關

<dependency>          <groupId>javax.servlet</groupId>          <artifactId>servlet-api</artifactId>          <version>2.5</version></dependency>

 

mysql-jdbc:串連mysql資料庫的,jdbc

<dependency>          <groupId>mysql</groupId>          <artifactId>mysql-connector-java</artifactId>          <version>5.1.25</version></dependency>

 

fastjson:用於處理json資料

<dependency>          <groupId>com.alibaba</groupId>          <artifactId>fastjson</artifactId>          <version>1.1.37</version></dependency>

 

jstl:JSP標準標籤庫

<dependency>          <groupId>jstl</groupId>          <artifactId>jstl</artifactId>          <version>1.1.0</version></dependency>

 

maven中pom.xml引入jar包小結

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.