当前位置:网站首页>ssm框架原理
ssm框架原理
2022-07-01 15:52:00 【joker_zh53】
ssm框架原理
ssm是springmvc+spring+mybaits框架集合。
使用spring mvc负责请求的转发和视图管理;spring实现业务对象管理;mybaits作为数据作为数据对象的持久化
Spring MVC
m-> 模型
v->视图,负责呈现模型的数据和生成的html的输出
c->controller,负责处理客户请求,数据响应给前端
DAO层:主要是做数据持久层的工作,负责与数据库进行联络的一些任务封装
1.DAO层的设计首先是设计DAO的接口。
2.然后再Spring的配置文件中定义此接口的实现类。
3.然后就可以在模块中调用此接口来进行数据业务的处理,而不用关心此接口的具体实现类是哪个类,显得结构非常清晰。
4.DAO层的数据源配置,以及有关数据库连接的参数都在spring的配置文件中进行配置。
Service层:业务模块的逻辑应用设计
Controller层:负责具体的业务模块流程的控制
View层:该层和Controller结合比较紧密,需要二者结合起来协同开发。View层主要负责前台jsp页面的表示。
Spring
spring控制所有的容器
Mybaits
对于jdbc的封装,让数据库底层操作变的透明。
边栏推荐
- Summer Challenge harmonyos canvas realize clock
- 投稿开奖丨轻量应用服务器征文活动(5月)奖励公布
- 韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
- 从大湾区“1小时生活圈”看我国智慧交通建设
- 【Pygame实战】你说神奇不神奇?吃豆人+切水果结合出一款你没玩过的新游戏!(附源码)
- 【Hot100】20. 有效的括号
- Tensorflow team: we haven't been abandoned
- 电脑屏幕变色了怎么调回来,电脑屏幕颜色怎么改
- 使用腾讯云搭建图床服务
- Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices
猜你喜欢

Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results

2023 spring recruitment Internship - personal interview process and face-to-face experience sharing
![[pyGame practice] do you think it's magical? Pac Man + cutting fruit combine to create a new game you haven't played! (source code attached)](/img/0a/c1a4b57b9729e0cf9de1feae9f8c19.png)
[pyGame practice] do you think it's magical? Pac Man + cutting fruit combine to create a new game you haven't played! (source code attached)
![[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes](/img/73/98e4847783be26d86d147425ce3ecd.jpg)
[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes

工厂高精度定位管理系统,数字化安全生产管理

嵌入式开发:5个修订控制最佳实践

ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification

基于PHP的轻量企业销售管理系统

2022 Moonriver global hacker song winning project list

TensorFlow團隊:我們沒被拋弃
随机推荐
The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's eldest disciple
vscode 查找 替换 一个文件夹下所有文件的数据
ThinkPHP advanced
One revolution, two forces, three links: the "carbon reduction" roadmap behind the industrial energy efficiency improvement action plan
Nuxt.js数据预取
Overview | slam of laser and vision fusion
运动捕捉系统原理
远程办公经验?来一场自问自答的介绍吧~ | 社区征文
In the past six months, it has been invested by five "giants", and this intelligent driving "dark horse" is sought after by capital
电脑照片尺寸如何调整成自己想要的
Samsung took the lead in putting 3nm chips into production, and Shanghai's fresh master students can settle directly. Nankai has established a chip science center. Today, more big news is here
Seata中1.5.1 是否支持mysql8?
有些能力,是工作中学不来的,看看这篇超过90%同行
TensorFlow团队:我们没被抛弃
Microservice tracking SQL (support Gorm query tracking under isto control)
【开源数据】基于虚拟现实场景的跨模态(磁共振、脑磁图、眼动)人类空间记忆研究开源数据集
What time do you get off work?!!!
【Hot100】17. 电话号码的字母组合
Action after deleting laravel's model
华为发布HCSP-Solution-5G Security人才认证,助力5G安全人才生态建设