Differences: 1. In development, although springboot simplifies the configuration, it is just that the way of writing becomes simpler, and there are still some differences in the way of integration with SSM; 2. When developing using SSM, most of them will Choose Jsp as the view, but springboot does not recommend using jsp.
What is Springboot?
Before talking about springboot, we need to talk about tradition first For SSM development, anyone who has used SSM development will find that traditional SSM framework projects will have a large number of configuration files, which require manual integration of three frameworks, namely springmvc, spring, and mybatis, and need to pay attention to various configurations and compatibility , the later maintenance is also very difficult.
Nowadays, there are endless ways to quickly develop a website, such as Node js, Php. Scripting languages are also becoming more and more popular, such as python, scala, ruby, etc. At this time, the spring development model seems relatively cumbersome.
In this case, the Pivotal team developed a tool set called springboot. In fact, the essence is spring framework. The underlying code is also the integration of springmvc and spring. However, manual zone configuration is not required, just Import the corresponding dependencies, and springboot will automatically configure it.
What does Springboot help us do?
1. Springboot uses a specific configuration method, and developers do not It is necessary to redefine the boilerplate configuration to simplify the initial construction of the project.
2. Springboot provides more combined annotations to simplify the development process.
3. Springboot can have "zero configuration" Integrate many third-party tools.
4. Springboot provides built-in containers, and deployment becomes extremely simple.
5. Springboot also provides corresponding solutions for monitoring.
6. ……..and other benefits.
The relationship between Springboot and ssm
springboot and ssm do not conflict, Springboot only simplifies the configuration, and there is no difference in actual development.
SSM is like driving a manual car. You need to step on the clutch, shift gears, and give fuel before the car can start.
And springboot is like driving an automatic car. If you put a car in gear, it will go and stop if you press the brake.
The difference between Springboot and SSM
The difference still exists in development Yes, although springboot simplifies the configuration, it does not mean that there is no need to write a configuration file. You still need to write some content in the application.yml file that comes with it. It is just that the way of writing has become simpler. Although it is simple, it is not the same as There are some differences in the way SSM is integrated.
When using SSM to develop, most people will choose Jsp as the view, but springboot does not recommend the use of jsp. The main recommendations are template engines such as thymeleaf and freemarker; this also causes the use of SSM development to springboot development. Learning costs.
However, if you master SSM, learning springboot will be a matter of course and extremely simple.
For more programming-related knowledge, please visit:Introduction to Programming! !
The above is the detailed content of What are the differences between ssm and springboot?. For more information, please follow other related articles on the PHP Chinese website!