maven创建ssm项目时 pom文件中需要引入的依赖

最近学习完了ssm框架 需要整合起来做一个小实战,这里记录一下实战中用到的依赖

maven pom文件中的依赖需要去Maven Repository查找复制
这里是链接:添加链接描述

1.spring 与 springMVC用到的 spring webmvc

maven创建ssm项目时 pom文件中需要引入的依赖_第1张图片

2.用来做事物控制的 spring jdbc

maven创建ssm项目时 pom文件中需要引入的依赖_第2张图片

3.spring面向切面编程用到的 spring Aspects

maven创建ssm项目时 pom文件中需要引入的依赖_第3张图片

4.mybatis

maven创建ssm项目时 pom文件中需要引入的依赖_第4张图片

5.mybatis整合spring适配包 MyBatis Spring

maven创建ssm项目时 pom文件中需要引入的依赖_第5张图片

6.数据库连接池c3p0

maven创建ssm项目时 pom文件中需要引入的依赖_第6张图片

7.spring test 单元测试模块

maven创建ssm项目时 pom文件中需要引入的依赖_第7张图片

8.mysql驱动

maven创建ssm项目时 pom文件中需要引入的依赖_第8张图片

9.一些功能的实现需要的jar包: jstl、junit、servlet-api

maven创建ssm项目时 pom文件中需要引入的依赖_第9张图片maven创建ssm项目时 pom文件中需要引入的依赖_第10张图片maven创建ssm项目时 pom文件中需要引入的依赖_第11张图片

补充:(mybatis逆向工程所使用的依赖)

maven创建ssm项目时 pom文件中需要引入的依赖_第12张图片

补充:mybatis分页插件
		<dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
            <version>5.0.0</version>
        </dependency>
补充:使用jsp所需要的包

maven创建ssm项目时 pom文件中需要引入的依赖_第13张图片

补充:向前端返回Json数据需要引入的jackson包

maven创建ssm项目时 pom文件中需要引入的依赖_第14张图片

补充:后端校验JSR303需要导入的包

maven创建ssm项目时 pom文件中需要引入的依赖_第15张图片

具体代码如下
<?xml version="1.0" encoding="UTF-8"?>
<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.lc</groupId>
    <artifactId>ssm_02_CRUD</artifactId>
    <version>1.0-SNAPSHOT</version>
    <dependencies>
        <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>4.3.7.RELEASE</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>4.3.7.RELEASE</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aspects</artifactId>
            <version>4.3.7.RELEASE</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis</artifactId>
            <version>3.4.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.3.1</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/c3p0/c3p0 -->
        <dependency>
            <groupId>c3p0</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.0.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.41</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/jstl/jstl -->
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.0.1</version>
            <scope>provided</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/junit/junit -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.mybatis.generator/mybatis-generator-core -->
        <dependency>
            <groupId>org.mybatis.generator</groupId>
            <artifactId>mybatis-generator-core</artifactId>
            <version>1.3.5</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>4.3.7.RELEASE</version>
            <scope>test</scope>
        </dependency>
		<dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
            <version>5.0.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/javax.servlet.jsp/jsp-api -->
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
            <version>2.2</version>
            <scope>provided</scope>
        </dependency>
		<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
		<dependency>
    		<groupId>com.fasterxml.jackson.core</groupId>
    		<artifactId>jackson-databind</artifactId>
    		<version>2.8.8</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator -->
		<dependency>
		    <groupId>org.hibernate</groupId>
		    <artifactId>hibernate-validator</artifactId>
		    <version>5.4.1.Final</version>
		</dependency>


    </dependencies>

</project>

你可能感兴趣的:(maven创建ssm项目时 pom文件中需要引入的依赖)