Maven常用依赖包简单
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依赖包文章,仅做笔记使用
Maven常用依赖包简单的更多相关文章
- Maven将依赖包、jar/war包及配置文件输出到指定目录
使用Maven插件将依赖包 jar包 war包及配置文件输出到指定目录 写在前面 最近遇到一个朋友遇到一个项目需要将 maven 的依赖包和配置文件分开打包然后用脚本执行程序.这样的好处在于可以随 ...
- maven项目依赖包问题
问题 maven传递依赖 解决方案 前段时间,开发中遇到一个关于maven依赖包的问题:由于业务需要,支付网关对账代码中的slf4j-api包需要更新,原包为1.5.8版本,需要更新到1.6.4版 ...
- Maven下载依赖包所使用的方法或者说三方包
wagon-http-3.2.0-shaded.jar 下载主要用的是这个包,mac位于路径/usr/local/Cellar/maven/3.6.0/libexec/lib下 如图,即使修改jar包 ...
- maven下载依赖包下载失败
在家办公,遇到项目的maven包下载不了,刚开始以为是vpn的问题,折腾半天反复确认之后没有发现什么问题. 同时试过阿里巴巴的maven仓库,删除过以来,重新导过包发现都不行. 后来在idea的设置里 ...
- 通过代码在eclips中添加Maven Dependencies依赖包的简单方法
条件是已经正确解压了maven包并配置好了环境变量: 然后新建一个maven项目,(可在other中找到) 然后打开最下边的配置文件pom.xml: 打开后在文本下边选项选pom.xml选项: 在&l ...
- Maven - 解决Maven下载依赖包速度慢问题
通常我们会因为下载jar包速度缓慢而苦恼,这十分影响开发效率,以及程序员的心情,在IDE下载jar时,无法对IDE做任何动作,只能大眼对小眼. 下载jar速度慢究其原因就是因为很多资源都是国外的,我们 ...
- LINUX下编译源码时所需提前安装的常用依赖包列表
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-deve ...
- Maven加依赖包
对于初学maven的人来说刚开始会有个困惑,那就是怎么知道依赖的jar的groupId和atrifactId是什么, 比如要依赖mybatis,会在pom.xml中配置如下: <dependen ...
- IDEA右侧 Maven oracle依赖包有红色波浪线
1\下载 ojdbc14-10.2.0.4.0.jar http://www.java2s.com/Code/Jar/o/Downloadojdbc14102040jar.htm 2.将ojdbc14 ...
- maven常用依赖总结
Apache工具组件 <!-- 字符串处理 --> <dependency> <groupId>org.apache.commons</groupId> ...
随机推荐
- Redis Stream实现全部节点机器推送消息
背景 有时候,在微服务时代,我们需要对全部的机器节点进行通知.在常规情况下,一个请求经过负载均衡只有一个机器可以收到.那么,如何能让全部的机器都收到同样的请求呢?需要借助消息队列的监听机制,让每个节点 ...
- 元素定位xpath路径中添加参数的方法
在某次自动化测试中,需要定位下拉列表(非select列表)中不同的元素,我想到了利用参入参数的方式来实现,经过多次尝试,得到如下方法,与大家分享 例如在通过text定位某个元素时,self.find_ ...
- Java中File类
File类是java.io包中唯一代表磁盘文件本身的对象.File类的对象主要用来获取文件本身的一些信息,如文件所在目录.文件长度.读写权限等. 一. 文件的创建与删除 通常使用以下三种方法来创建一个 ...
- 随机生成四则运算表达式【Unity】
根据自己项目需求调整代码中表达式的公共方法 using System.Collections; using System.Collections.Generic; using System; usin ...
- re模块相关介绍
re模块 模块和实际工作时间的关系 time模块和时间是什么关系?re模块和正则表达式的关系? 有了re模块就可以在python语言中操作正则表达式 正则表达式 1:什么是正则表达式? 一套规则--- ...
- MQTT服务器搭建——Liunx安装mosquitto,并设置用户密码
一.安装 1.下载mosquitto安装包 地址:http://mosquitto.org/files/source/ 2.安装依赖包 yum install gcc gcc-c++ libstdc+ ...
- python-文件和文件夹操作
1.os模块 import os 方法 功能说明 access(path,mode) 测试是否可以按照mode指定的权限访问文件 chdir(path) 把path设为当前工作目录 chmod(pat ...
- CentOS安装并查看lm_sensors CPU温度监控
CentOS安装并查看lm_sensors 首先查看是否安装rpm包: [root@localhost home]# rpm -qa|grep sensors lm_sensors-libs-3.1. ...
- Unity 转小游戏
填写appid 和游戏资源位置 在导出的项目里可以修改游戏资源位置 两个目录 minigame 是小程序打开的目录 webgl 是要下载的的资源 下载一个http 服务器就有了 和JS交互 大部分js ...
- C/C++命名规范-C语言基础
这一篇文章想要介绍的是编写代码的时候业界比较常用的一些命名规范,以及个人平时的一些命名规范.涉及"驼峰命名法"."下划线命名法"."帕斯卡命名法&qu ...