SSM框架(spring+springMVC+Mybatis) pom.xml文件 常用配置

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.chen</groupId>

    <artifactId>springssm</artifactId>

    <version>0.0.1-SNAPSHOT</version>

    <packaging>war</packaging>

 

    <!-- 编码格式设置为 UTF-8 -->

    <properties>

       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

       <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

       <spring.version>5.0.8.RELEASE</spring.version>

    </properties>

    <dependencies>

       <!-- spring-context-support spring上下文配置 -->

       <dependency>

           <groupId>org.springframework</groupId>

           <artifactId>spring-context-support</artifactId>

           <version>${spring.version}</version>

       </dependency>

 

       <!-- spring-webmvc spring 整合web -->

       <dependency>

           <groupId>org.springframework</groupId>

           <artifactId>spring-webmvc</artifactId>

           <version>${spring.version}</version>

       </dependency>

 

       <!-- spring-jdbc -->

       <dependency>

           <groupId>org.springframework</groupId>

           <artifactId>spring-jdbc</artifactId>

           <version>${spring.version}</version>

       </dependency>

 

 

       <!-- mybatis-spring spring整合mybatis -->

       <dependency>

           <groupId>org.mybatis</groupId>

           <artifactId>mybatis-spring</artifactId>

           <version>1.3.2</version>

       </dependency>

 

       <!-- mybatis 持久层 -->

       <dependency>

           <groupId>org.mybatis</groupId>

           <artifactId>mybatis</artifactId>

           <version>3.4.6</version>

       </dependency>

 

       <!-- druid 连接池 -->

       <dependency>

           <groupId>com.alibaba</groupId>

           <artifactId>druid</artifactId>

           <version>1.1.10</version>

       </dependency>

 

       <!-- mysql 驱动 -->

       <dependency>

           <groupId>mysql</groupId>

           <artifactId>mysql-connector-java</artifactId>

           <version>5.1.46</version>

       </dependency>

 

       <!-- servlet-api -->

       <dependency>

           <groupId>javax.servlet</groupId>

           <artifactId>javax.servlet-api</artifactId>

           <version>4.0.1</version>

           <scope>provided</scope>

       </dependency>

 

       <!-- jstl c标签 -->

       <dependency>

           <groupId>javax.servlet</groupId>

           <artifactId>jstl</artifactId>

           <version>1.2</version>

       </dependency>

 

       <!-- spring-test spring单元测试 -->

       <dependency>

           <groupId>org.springframework</groupId>

           <artifactId>spring-test</artifactId>

           <version>${spring.version}</version>

           <scope>test</scope>

       </dependency>

 

       <!-- junit 单元测试 -->

       <dependency>

           <groupId>junit</groupId>

           <artifactId>junit</artifactId>

           <version>4.12</version>

           <scope>test</scope>

       </dependency>

 

       <!-- slf4j-log4j12 日志 -->

       <dependency>

           <groupId>org.slf4j</groupId>

           <artifactId>slf4j-log4j12</artifactId>

           <version>1.7.25</version>

       </dependency>

 

       <!-- commons-lang3 -->

       <dependency>

           <groupId>org.apache.commons</groupId>

           <artifactId>commons-lang3</artifactId>

           <version>3.7</version>

       </dependency>

 

       <!-- commons-fileupload 文件上传 -->

       <dependency>

           <groupId>commons-fileupload</groupId>

           <artifactId>commons-fileupload</artifactId>

           <version>1.3.3</version>

       </dependency>

      

       <!-- hibernate-validator 服务器端校验 -->

       <dependency>

           <groupId>org.hibernate</groupId>

           <artifactId>hibernate-validator</artifactId>

           <version>5.4.2.Final</version>

       </dependency>

 

       <!-- jsp-api -->

       <dependency>

           <groupId>javax.servlet.jsp</groupId>

           <artifactId>jsp-api</artifactId>

           <version>2.2</version>

           <scope>provided</scope>

       </dependency>

 

       <!-- spring-aspects 提供对AspectJ的支持-->

       <dependency>

           <groupId>org.springframework</groupId>

           <artifactId>spring-aspects</artifactId>

           <version>${spring.version}</version>

       </dependency>

     

    </dependencies>

 

 

    <!-- 编译器为JDK1.8版本 -->

    <build>

       <plugins>

           <plugin>

              <groupId>org.apache.maven.plugins</groupId>

              <artifactId>maven-compiler-plugin</artifactId>

              <configuration>

                  <source>1.8</source>

                  <target>1.8</target>

              </configuration>

           </plugin>

       </plugins>

    </build>

</project>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值