java web:Maven项目pom.xml需要导入的常用依赖

java web:Maven项目pom.xml需要导入的常用依赖

1、引入本地仓库

   <groupId>com.ydxgroupId>
   <artifactId>MyMaven(项目名)artifactId>
   <version>1.0-SNAPSHOTversion>

2、junit测试

<dependency>
            <groupId>junitgroupId>
            <artifactId>junitartifactId>
            <version>4.12version>
            <scope>testscope>
        dependency>

3、jsp-jstl标签

 <dependency>
            <groupId>jstlgroupId>
            <artifactId>jstlartifactId>
            <version>1.2version>
        dependency>

4、servlet

 <dependency>
            <groupId>javax.servletgroupId>
            <artifactId>javax.servlet-apiartifactId>
            <version>3.1.0version>
        dependency>

5、德鲁伊druid连接池

 <dependency>
            <groupId>com.alibabagroupId>
            <artifactId>druidartifactId>
            <version>1.1.10version>
        dependency>

6、dbUtils工具

 <dependency>
            <groupId>commons-dbutilsgroupId>
            <artifactId>commons-dbutilsartifactId>
            <version>1.6version>
        dependency>

7、mysql

<dependency>
            <groupId>mysqlgroupId>
            <artifactId>mysql-connector-javaartifactId>
            <version>5.1.47version>
        dependency>

8、beanutils工具

 <dependency>
            <groupId>commons-beanutilsgroupId>
            <artifactId>commons-beanutilsartifactId>
            <version>1.9.3version>
        dependency>

9、引入mybatis

 <dependency>
            <groupId>org.mybatisgroupId>
            <artifactId>mybatisartifactId>
            <version>3.4.6version>
        dependency>

10、分页查询插件

<dependency>
            <groupId>com.github.pagehelpergroupId>
            <artifactId>pagehelperartifactId>
            <version>5.1.2version>
        dependency>

11、Lombok插件

 <dependency>
            <groupId>org.projectlombokgroupId>
            <artifactId>lombokartifactId>
            <version>1.18.6version>
        dependency>

12、引入spring

<dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-contextartifactId>
            <version>5.2.2.RELEASEversion>
        dependency>

13、JdbcTemplate工具

   <dependency>
            <groupId>org.springframeworkgroupId>
            <artifactId>spring-jdbcartifactId>
            <version>5.2.2.RELEASEversion>
        dependency>

14、打war包

 <packaging>warpackaging>

你可能感兴趣的:(Maven,maven,xml,web,java)