当前位置:网站首页>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的封装,让数据库底层操作变的透明。
边栏推荐
- 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
- Reading notes of top performance version 2 (V) -- file system monitoring
- [PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system
- 硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件
- MySQL advanced 4
- Seata中1.5.1 是否支持mysql8?
- 超视频时代,什么样的技术会成为底座?
- 新出生的机器狗,打滚1小时后自己掌握走路,吴恩达开山大弟子最新成果
- VIM from dislike to dependence (22) -- automatic completion
- Crypto Daily: Sun Yuchen proposed to solve global problems with digital technology on MC12
猜你喜欢
Huawei issued hcsp-solution-5g security talent certification to help build 5g security talent ecosystem
ADS算力芯片的多模型架构研究
Tanabata confession introduction: teach you to use your own profession to say love words, the success rate is 100%, I can only help you here ~ (programmer Series)
Introduction to RT thread env tool (learning notes)
Deep operator overloading (2)
你TM到底几点下班?!!!
There is a difference between u-standard contract and currency standard contract. Will u-standard contract explode
【php毕业设计】基于php+mysql+apache的教材管理系统设计与实现(毕业论文+程序源码)——教材管理系统
MySQL backup and restore single database and single table
STM32F1与STM32CubeIDE编程实例-PWM驱动蜂鸣器生产旋律
随机推荐
使用腾讯云搭建图床服务
2023 spring recruitment Internship - personal interview process and face-to-face experience sharing
6.2 normalization 6.2.6 BC normal form (BCNF) 6.2.9 normalization summary
2022-07-01日报:谷歌新研究:Minerva,用语言模型解决定量推理问题
Action after deleting laravel's model
C#/VB.NET 合并PDF文档
【每日一题】1175. 质数排列
Preorder, inorder, follow-up of binary tree (non recursive version)
大龄测试/开发程序员该何去何从?是否会被时代抛弃?
智慧党建: 穿越时空的信仰 | 7·1 献礼
Smart Party Building: faith through time and space | 7.1 dedication
你TM到底几点下班?!!!
【OpenCV 例程200篇】216. 绘制多段线和多边形
Automatique, intelligent, visuel! Forte conviction des huit conceptions derrière la solution sslo
Go language learning notes - Gorm use - table addition, deletion, modification and query | web framework gin (VIII)
ABAP call restful API
2023届春招实习-个人面试过程和面经分享
The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's eldest disciple
[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes
Reading notes of top performance version 2 (V) -- file system monitoring