【框架】——SSM框架的整合(一)

本文详细介绍SSM框架(Spring+SpringMVC+MyBatis)的整合过程与应用技巧,包括环境搭建、工程配置及实战案例等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

小编最近这两天没有什么事情就想着整理一下SSM框架,所以特别为读者们献上我的总结,废话不多说来点实际的内容。

【简介】

SSM顾名思义就是Spring+SpringMVC+mybatis。通过Spring来将各层进行整合,通过spring来管理持久层(mybatis),通过spring来管理handler。总之,spring是将各层进行整合。

                                      

【环境搭建】

请点击连接:https://blog.youkuaiyun.com/zhshulin/article/details/30779873

taotao-工程搭建

请点击连接:https://blog.youkuaiyun.com/tengliu6/article/details/79118701

taotao-SSM框架整合搭建

请点击连接:https://blog.youkuaiyun.com/tengliu6/article/details/79132520

taotao-SSM+dubbo整合测试

请点击连接:https://blog.youkuaiyun.com/tengliu6/article/details/79154817




1、整合准备 整合内容: 整合架构:Spring、SpringMVC以及MyBatis的整合。 数据库:MySQL 连接池:Druid(阿里巴巴研发) 整合工具: 整合工具为:Eclipse Jar管理工具:Maven 项目类型为:Maven Pproject 2、SSM整合 2.1、导入整合相关的jar包(Maven) pom.xml文件 4.0.0 com.woo0nise woo0nise-parent 0.0.1-SNAPSHOT SSM SSM 0.0.1-SNAPSHOT war <!-- MySql --> mysql mysql-connector-java <!-- 连接池 --> com.alibaba druid <!-- Spring --> <!-- spring核心包 --> org.springframework spring-core org.springframework spring-context org.springframework spring-beans org.springframework spring-web <!-- Spring对JDBC的封装 --> org.springframework spring-jdbc org.springframework spring-aspects <!-- 关系型数据库整合时需配置 如hibernate jpa等 --> org.springframework spring-orm <!-- Spring MVC核心 --> org.springframework spring-webmvc <!-- Jackson Json处理工具包(非必须) --> com.fasterxml.jackson.core jackson-databind <!-- 单元测试 --> junit junit test <!-- 日志处理(非必须) --> org.slf4j slf4j-log4j12 <!-- Mybatis --> org.mybatis mybatis <!-- mybatis的整合包 --> org.mybatis mybatis-spring <!-- mybatis分页插件(非必须) --> com.github.pagehelper pagehelper com.github.miemiedev mybatis-paginator <!-- JSP相关 --> jstl jstl javax.servlet servlet-api provided javax.servlet jsp-api provided <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 --> src/main/java **/*.properties **/*.xml false
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值