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> ...
随机推荐
- 查看linux机器上的cpu个数
1. 查看 cpu 的物理核数cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l 查看每个物理CPU中core的个数( ...
- 【收藏】js数组图
- python 时间戳转日期 不自动补零 without zero-padding
1. 时间戳转日期 代码 import time timestamp = 1568171336 time_format = "%Y-%m-%d %H:%M:%S" time_loc ...
- js 数组对象中每一项对象属性比较大小与计算数组对象属性和
// 数组对象排序方法 export function compare(property) { return function (a, b) { const value ...
- rgb变为灰度图像
close all;clc; x = imread('C:\timg.jpg'); %读取rgb图片信息I = rgb2gray(x);%将rgb图像转化为灰度图像 set(0,'defaultFig ...
- shell脚本基本介绍
1.编程介绍 驱动 硬件默认是不能使用的 CPU控制硬件.不同的厂家硬件设备之间需要进行指令沟通,我们需要驱动程序来进行"翻译": 更趋近与开发的工程师,要学习"汇编语言 ...
- python实现录屏功能(亲测好用)
更新时间:2020年03月02日 13:59:52 作者:linnahan https://www.jb51.net/article/181757.htm import time,threading ...
- Spring 核心容器 IOC
目录 1. BeanFactory 2. BeanDefinition 3. BeanDefinitionReader 4 . Web IOC 容器初体验 一 .BeanFactory Spring ...
- CF1272 C Yet Another Broken Keyboard 题解+代码比对
C. Yet Another Broken Keyboard time limit per test 2 seconds memory limit per test 256 megabytes inp ...
- oracle 将以逗号分隔的列拆成多行的的方法
原表如下 select * from hs_acct.custattach a where a.client_id='888827395'; 将列拆分成多行的语句 select * from ( -- ...