本文有什么用?
缺包,知道包名,百度到了maven一段pom,但找不到官网或下载地址,试试maven
步骤:
1、Eclipse 创建 Maven Project
2、需要下载的包maven pom
3、保存-稍等-OK
举例说明:
比如我们在使用Spring5.0版本以上时,jackson版本低于2.6会报异常找不到class。这个时候我们需要下载jackson2.9.7的包
1、Eclipse里创建一个maven project,就用来下jar包,所以一路闪电带火花闭着眼睛点next-next-finished



2、创建成功后,把你需要拷贝的pom,下载jackson的如下

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.7</version>
</dependency>
3、保存pom,等会,找到maven dependencies 目录下的路径。
网友评论