Maven依赖管理

Maven查找包:https://mvnrepository.com/

多个导入项目只能在一个dependencies中创建,不然会报错

<dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>4.11</version>
     <scope>test</scope>
   </dependency>

  <!--导入mysql-->
   <dependency>
     <groupId>mysql</groupId>
     <artifactId>mysql-connector-java</artifactId>
     <version>5.1.26</version>
   </dependency>

 </dependencies>

您可能还喜欢...