java-ssm框架(1)-框架所依赖的jar包获取途径

1.进入网站:https://mvnrepository.com

2.引入springMVC依赖的包
java-ssm框架(1)-框架所依赖的jar包获取途径_第1张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第2张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第3张图片3.引入Spring-jdbc所依赖的包(注意版本对应)
java-ssm框架(1)-框架所依赖的jar包获取途径_第4张图片4.引入spring面向切片编程
java-ssm框架(1)-框架所依赖的jar包获取途径_第5张图片5.引入mybatis
java-ssm框架(1)-框架所依赖的jar包获取途径_第6张图片6.引入MyBatis整合Spring的适配包
java-ssm框架(1)-框架所依赖的jar包获取途径_第7张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第8张图片7.数据库连接池 驱动
java-ssm框架(1)-框架所依赖的jar包获取途径_第9张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第10张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第11张图片
8.jstl,servlet-api,junit
java-ssm框架(1)-框架所依赖的jar包获取途径_第12张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第13张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第14张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第15张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第16张图片java-ssm框架(1)-框架所依赖的jar包获取途径_第17张图片注意:所有饿包应该在标签内,代码中注释了包的路径,可以通过路径寻找包。前面的包注意版本尽量一致

9.代码

<!-- 引入项目依赖的jar包 -->

 <dependencies>
    <!-- SpringMVC Spring -->
    <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
 <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>4.3.7.RELEASE</version>
</dependency>

    <!-- Spring-jdbc -->
    <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    <version>4.3.7.RELEASE</version>
</dependency>
    <!-- Spring面向切面编程 -->
    <!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aspects</artifactId>
    <version>4.3.7.RELEASE</version>
</dependency>

   <!-- MyBatis -->
   <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
<dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis</artifactId>
    <version>3.4.2</version>
</dependency>


   <!-- MyBatis整合Spring的适配包 -->
   <!-- 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.1</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>

<!-- jstl,servlet-api,junit -->
<!-- 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>servlet-api</artifactId>
    <version>2.5</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>



</dependencies>

你可能感兴趣的:(java-ssm)