当前位置:网站首页>Interviewer: what is the difference between SSH and SSM frameworks? How to choose??
Interviewer: what is the difference between SSH and SSM frameworks? How to choose??
2022-06-23 01:56:00 【Java technology stack】
source :blog.csdn.net/horero/article/details/54236833
I have used SSH Frame for a while , Finally, when optimizing the project, decide to use SSM frame , Here are some simple differences between the two frameworks .
SSH The frame is Struts+Spring+Hibernate and SSM It means Spring-MVC+Spring+MyBatis, Just from these two abbreviations, you can see , If we compare the differences between the two, we mainly compare Struct and Spring-MVC as well as Hibernate and MyBatis.
SpringMVC contrast Struts
- Struts and Spring-MVC Are responsible for receiving and forwarding , But both are aimed at request Your request is very different ,Struts It's about a Action Class to make the request , That is, a Action Corresponds to a request class , So class interception , The requested data class is shared . and Spring-MVC For method level requests , That is, a method corresponds to a request , It belongs to method interception , The requested data method is not shared .
- Spring-MVC There are relatively few configuration files , Easy to use , It can accelerate the speed of software development , Experience effectively .
- Spring-MVC The entrance to is Servlet Level and Struts The level of is Filter Grade .
Hibernate contrast MyBatis
in the light of Hibernate and MyBatis Operate on persistent classes , The differences between them can be sorted out as follows :
- Hibernate It's a kind of O/R Relational type , That is to complete the mapping between database tables and persistent classes , and MyBatiss It's for you SQL-Maping, Personal understanding is a kind of Hibernate After encapsulating the database , You can call the corresponding database operation statement HQL, and MyBatis It uses the original database operation statement .
- be based on 1 The reason in , be Hibernate Optimization is relatively MyBatis More difficult .
- MyBatis Getting started faster , and Hibernate It's relatively difficult to master .
- For advanced queries ,Mybatis It needs to be written manually SQL sentence , as well as ResultMap. and Hibernate There is a good mapping mechanism , Developers don't need to care SQL Generation and result mapping of , You can focus more on business processes .
- Hibernate Database portability is good ,MyBatis Database portability is not good , Different databases require different writes SQL.
Summary
summary :SSH Although I feel very heavy , But for understanding MVC Model even IOC It's not bad , It's quite suitable for practicing , however SSM It makes people feel fast , No matter for OOP Or face AOP Programming , It gives people a transparent pleasure .
Recent hot article recommends :
1.1,000+ Avenue Java Arrangement of interview questions and answers (2022 The latest version )
2. Explode !Java Xie Cheng is coming ...
3.Spring Boot 2.x course , It's too complete !
4.20w Programmer red envelope cover , Get it quickly ...
5.《Java Development Manual ( Song Mountain version )》 The latest release , Download it quickly !
I think it's good , Don't forget to like it + Forward !
边栏推荐
- II Data preprocessing
- Questions not written in the monthly contest
- //1.8 char character variable assignment integer
- How are pub and sub connected in ros1?
- Data analysis method - user group analysis
- 【CodeWars】What is between?
- C language games: sanziqi (simple version) implementation explanation
- There are animation characters interacting with each other when the mouse slides in the web page
- Zabbix5 series - use temperature and humidity sensor to monitor the temperature and humidity of the machine room (XX)
- [luogu] p1083 [noip2012 improvement group] borrow classroom (line segment tree)
猜你喜欢

4. functions and inline functions with default values for formal parameters

1. Mx6u bare metal program (4) - GPIO module

Branch and loop statements (including goto statements) -part1

1. Mx6u startup mode and equipment

SQL programming task03 job - more complex query

Three methods for solving Fibonacci sequence feibonacci (seeking rabbit) - program design
![[hdu] P6964 I love counting](/img/ff/f8e79d28758c9bd3019816c8f46723.png)
[hdu] P6964 I love counting

Ch340 and PL2303 installation (with link)

How to download online printing on Web pages to local PDF format (manual personal test)

7.new, delete, OOP, this pointer
随机推荐
3. compilation and linking principle
How to download online printing on Web pages to local PDF format (manual personal test)
Up the Strip
[template] KMP
Binary String
Analysis of current mainstream video coding technology | community essay solicitation
Game (sanziqi & minesweeping)
Rebirth -- millimeter wave radar and some things I have to say
【CodeWars】What is between?
Foundation Consolidation - Flex width is content width
11. function template, class template, implementation vector sequence container, and space adapter
1. Mx6u bare metal program (4) - GPIO module
Unique in Pimpl_ PTR compilation errors and Solutions
How are pub and sub connected in ros1?
Targeted and ready to go
Use elk to save syslog, NetFlow logs and audit network interface traffic
Nuxt - auto generate dynamic route bug
//1.15 putchar function
//1.14 comma operator and comma expression
You can be what you want to be
