Overview
Web Frameworks (Web framework) or Web application framework (Web application framework) are a set of software architectures for web development. Most web frameworks provide a set of ways to develop and deploy Web sites. Provides a set of support methods for the behavior of the web. Using the web framework, many of the functions outside of the business logic do not need to be perfected, but use the functionality that the framework already has.
Features of the web framework
Web frameworks allow for less work when it comes to web application development. Web framework is mainly used for dynamic network development, dynamic network mainly refers to the current main page, can realize the data interaction and the improvement of business functions. When using Web framework for Web development, the data cache, database access, data security checks, etc., do not need to be re-implemented, but the business logic-related code written to the framework. In other words, through the subjective "mend" of the web framework, we can realize the need of web development.
In PHP, for example, PHP can do web development on the Apache server without having to use the framework. When using PHP to open, in the case of non-applicable framework, the database connection needs to be implemented by itself, the page generation and display is the same. such as the framework can be done to avoid SQL injection work, and using PHP in the case of no framework, this part to do it yourself.
Currently Python's mainstream framework is Django and flask. Django is a more heavyweight framework, and heavyweight means that almost all of Django's features help developers write, sometimes if you want to make a simple web site that doesn't require much functionality, then using Django would be less appropriate. Because there are a lot of unnecessary features that can be deployed when you deploy a Web site. While Flask is a lightweight framework, some of the core functions are implemented, but the implementation of the function is not so much as Django, so that you can do their own play, on the basis of flask, if you want to achieve more features, can easily join.
Java's current mainstream development framework is SSM (Spring Spring-mvc and MyBatis). SSM is also a relatively lightweight framework compared to previous SSH (Spring struts hibernate).
For the sake of understanding, the individual creates an analogy, if the web framework is likened to a melody, the lyrics are compared to the business logic, then there are different songs. Melody may not meet the needs of people in some places, can be modified. You can also add a new melody on the basis. Or compare the frame to the result of a sketch and then paint it on the basis of a sketch, and then you can become a painting.
Summarize
Web Framework is a software architecture used for Web application development. Mainly used for dynamic network development. Developers implement their own business logic in a Web-based framework. The web framework implements a number of functions and provides a common approach to implementing business logic.
Reference
[1]https://en.wikipedia.org/wiki/web_framework
[2] Https://stackoverflow.com/questions/4507506/what-is-a-web-framework-how-does-it-compare-with-lamp
What is a web framework