首页 > 其他分享 >Maven常用依赖包简单

Maven常用依赖包简单

时间:2023-03-05 21:55:31浏览次数:48  
标签:11 常用 依赖 jackson spring Maven org com javax

Maven官方仓库:Maven Repository: junit » junit (mvnrepository.com)

Mysql

1 <!--Mysql-->
2 <dependency>
3     <groupId>mysql</groupId>
4     <artifactId>mysql-connector-java</artifactId>
5     <version>8.0.25</version>
6 </dependency>

JDBC

1 <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
2 <dependency>
3    <groupId>org.springframework</groupId>
4    <artifactId>spring-jdbc</artifactId>
5    <version>5.3.11</version>
6 </dependency>

Druid

1 <!-- 数据库连接池 -->
2 <dependency>
3     <groupId>com.alibaba</groupId>
4     <artifactId>druid</artifactId>
5     <version>1.1.21</version>
6 </dependency>

Junit

1 <!-- https://mvnrepository.com/artifact/junit/junit -->
2 <dependency>
3    <groupId>junit</groupId>
4    <artifactId>junit</artifactId>
5    <version>4.13.2</version>
6    <scope>test</scope>
7 </dependency>

C3P0

1 <!--Mysql-->
2 <dependency>
3    <groupId>com.mchange</groupId>
4    <artifactId>c3p0</artifactId>
5    <version>0.9.5.5</version>
6 </dependency>

Mybatis

1 <!--Mybatis-->
2 <dependency>
3    <groupId>org.mybatis</groupId>
4    <artifactId>mybatis</artifactId>
5    <version>3.5.7</version>
6 </dependency>

Spring MVC

1 <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
2 <dependency>
3    <groupId>org.springframework</groupId>
4    <artifactId>spring-webmvc</artifactId>
5    <version>5.3.11</version>
6 </dependency>

AspectJWeaver:AOP

1 <!-- aspectjweaver 面向切面编程-->
2 <dependency>
3    <groupId>org.aspectj</groupId>
4    <artifactId>aspectjweaver</artifactId>
5    <version>1.9.7</version>
6 </dependency>

MyBatis-Spring

1 <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
2 <dependency>
3    <groupId>org.mybatis</groupId>
4    <artifactId>mybatis-spring</artifactId>
5    <version>2.0.6</version>
6 </dependency>

Spring JDBC 

1 <dependency>
2    <groupId>org.springframework</groupId>
3    <artifactId>spring-jdbc</artifactId>
4    <version>5.3.11</version>
5 </dependency>

spring 注解事务

1 <dependency>
2   <groupId>org.springframework</groupId>
3   <artifactId>spring-tx</artifactId>
4   <version>4.3.9.RELEASE</version>
5 </dependency>

log4j日志处理

1 <dependency>
2     <groupId>org.slf4j</groupId>
3     <artifactId>slf4j-log4j12</artifactId>
4     <version>1.7.25</version>
5 </dependency>
 1 <!-- 添加s1f4j日志api --> 
 2 < dependency>
 3 < groupId>org . s1f4j</groupId>
 4 <artifactId>slf4j-api</artifactId>
 5 <version>1.7.20</version>
 6 </dependency>
 7 <!--添加logback-classic依赖 -->
 8 <dependency>
 9 < groupId>ch . qos . logback</groupId>
10 < artifactId>logback-classic< /artifactId>
11 <version>1.2.3< /version> 
12 </ dependency>
13 <!--添加logback-core依赖 --> 
14 <dependency>
15 < groupId>ch. qos. logback< / groupId>
16 < artifactId> logback -core</ artifactId>
17 <version>1.2.3</ version>
18 </ dependency>

Servlet 3.1

1 <dependency>
2     <groupId>javax.servlet</groupId>
3     <artifactId>javax.servlet-api</artifactId>
4     <version>3.1.0</version>
5     <scope>provided</scope>
6 </dependency>

Jackson

 1 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
 2 <dependency>
 3    <groupId>com.fasterxml.jackson.core</groupId>
 4    <artifactId>jackson-core</artifactId>
 5    <version>2.13.0</version>
 6 </dependency>
 7 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
 8 <dependency>
 9    <groupId>com.fasterxml.jackson.core</groupId>
10    <artifactId>jackson-annotations</artifactId>
11    <version>2.13.0</version>
12 </dependency>
13 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
14 <dependency>
15    <groupId>com.fasterxml.jackson.core</groupId>
16    <artifactId>jackson-databind</artifactId>
17    <version>2.13.0</version>
18 </dependency>

Apache POI

 1 <dependency>
 2     <groupId>org.apache.poi</groupId>
 3     <artifactId>poi</artifactId>
 4     <version>4.1.2</version>
 5 </dependency>
 6 <dependency>
 7     <groupId>org.apache.poi</groupId>
 8     <artifactId>poi-ooxml</artifactId>
 9     <version>4.1.2</version>
10 </dependency>
11 <dependency>
12     <groupId>org.apache.poi</groupId>
13     <artifactId>poi-ooxml-schemas</artifactId>
14     <version>4.1.2</version>
15 </dependency>

javaEE

1     <!--javaee-->
2     <dependency>
3       <groupId>javax</groupId>
4       <artifactId>javaee-api</artifactId>
5       <version>8.0</version>
6       <scope>provided</scope>
7     </dependency>

EL

1 <!-- https://mvnrepository.com/artifact/javax.el/javax.el-api -->
2 <dependency>
3     <groupId>javax.el</groupId>
4     <artifactId>javax.el-api</artifactId>
5     <version>3.0.0</version>
6 </dependency>

mail jar

 1     <!--mail jar-->
 2     <dependency>
 3       <groupId>javax.mail</groupId>
 4       <artifactId>javax.mail-api</artifactId>
 5       <version>1.5.6</version>
 6     </dependency>
 7     <dependency>
 8       <groupId>com.sun.mail</groupId>
 9       <artifactId>javax.mail</artifactId>
10       <version>1.5.6</version>
11     </dependency>

 

以上内容均参考各Maven依赖包文章,仅做笔记使用

标签:11,常用,依赖,jackson,spring,Maven,org,com,javax
From: https://www.cnblogs.com/gu1203/p/17181795.html

相关文章

  • spring的循环依赖和三级缓存
    一、spring中bean的生命周期回顾要理解spring中的循环依赖问题需要先了解spring中bean的生命周期,spring中创建bean的过程中主要有这几个阶段:实例化前$\rightarrow$实......
  • Node常用的指令集合
    一、查看安装的node版本命令:node-v二、查看安装的npm版本命令:npm-v三、查看安装的vue版本命令1:vue--version命令2:vue-V四、查看安装的cnpm版本命令:cnpm-v五......
  • Linux常用命令
    Linux常用命令下面是一些常用的Linux命令及其功能的简要说明:文件和目录操作ls列出当前目录下的文件和子目录。lscd切换当前工作目录到指定的目录。cd[目录路径]......
  • element-plus 常用控件
    分页<el-paginationbackgroundlayout="prev,pager,next":total="total"@current-change="currentChange"/>......
  • HTML与CSS手写-4.实现常用布局(三栏、圣杯、双飞翼、吸顶),可是说出多种方式并理解其优缺
    实现常用布局两栏布局三栏、圣杯、双飞翼圣杯布局和双飞翼布局是前端工程师需要日常掌握的重要布局方式。两者的功能相同,都是为了实现一个两侧宽度固定,中间宽度自适应......
  • Day06-1.maven
    day06-maven今日重点1.安装maven,并在idea中关联maven,创建maven项目(掌握)2.mybatis入门(必须完成)3.mybatis核心配置文件(掌握)一、maven概述1.1、项目开发中的问题......
  • ubuntu 防火墙ufw常用设置
    1.开放服务ufwallow'NginxFull'#添加策略ufwdeleteallow'NginxFull'#删除策略2.开放端口ufwallow80ufwdeleteallow803.只开放ipv4/tcp端口......
  • eclipse 常用快捷键
    ctrl+1:快捷修复,鼠标点击错误位置,按快捷键shift+enter:鼠标移动到行末并回车ctrl+d:删除本行ctrl+F11:运行程序alt+上键或下键:快速移动行ctrl+alt+......
  • Android常用命令集锦
    1.android:对你只要输入android就会出来,SDKandAVDmanager我们可以更新SDK,增删修改AVD.2.androidlistavds:这条命令将会列出所有我们创建的android模拟器.3.andr......
  • robotframework接口测试常用库
    RF接口测试常用库:pip3install-ihttps://pypi.douban.com/simplewxPython==4.0.4--trusted-hostpypi.douban.compip3install-ihttps://pypi.douban.com/simplero......