Foreword:
[About the framework of SSM, I will sort it out later]
[Learning article, this article is updated for a long time, if there is any error, I am grateful for correction, and will correct and answer in time, thank you]
text:
1. Configuration of the development environment [to be sorted out later]
2. Create the MAVEN WEB framework on IDEA [to be sorted out later]
3. Build the SSM framework
The construction process of the ssm framework is actually the integration process of the three JAVA open source frameworks spring, spring-MVC and mybatis. This involves the study of [using the maven integration framework and merging projects], and [doing it later].
step1: maven introduces the required jar package
Regarding the composition of the content of the pom.xml file: spring-dependent packages, database-related packages, mybatis-dependent packages, packages that depend on the relationship between the three, and auxiliary tool packages
Spring-dependent packages:
<!-- spring核心包 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> </dependency>
Packages that mybatis depends on:
<!-- mybatis核心包 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</version> </dependency>
Database related packages:
<!-- 导入Mysql数据库链接jar包 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.30</version> </dependency> <!-- Import the jar package of dbcp to configure the database in applicationContext.xml --> < dependency > < groupId > commons-dbcp </ groupId > < artifactId > commons-dbcp </ artifactId > < version > 1.2. 2 </ version > </ dependency > <!-- 数据库连接池 --> <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.2</version> </dependency>