A summary of Java EE knowledge pointsWhat is tiered development?
A software development method that is small and divide-and-conquer.
features of layering:
1. Each floor has its own responsibility.
2. The previous layer does not care about the next layer of implementation details, the previous layer with the external interface provided by the next layer to use its function.
3. The previous layer calls the next layer of functionality, the next layer cannot invoke the function of the previous layer.
Benefits of tiered development:
1. Each layer focuses on the realization of its own function, which facilitates the improvement of quality.
2. Facilitate the Division of labor and Cooperation, improve development efficiency.
3. Facilitates the reuse of code.
4. Facilitate the extension of the program.
principle of encapsulation:
Each level exposes the interface outward, but hides the inner details.
Sequential access principles:
The next tier serves the previous tier, but not the service on the previous tier
To pass data using an entity class:
In a hierarchical structure, data is transferred between different tiers through entity classes
Summary of hierarchies:
DAO is located between business logic and persisted data, enabling access to persisted data
Mainly consists of DAO interface, DAO implementation class and entity class.
Database connection and Shutdown tool classes for code reuse
features of layered development:
Each floor has its own responsibilities.
The previous layer calls the next layer of functionality, the next layer cannot invoke the previous layer of functionality
advantages and principles of layered development:
It is easy to improve development quality, improve development efficiency, facilitate code reuse, facilitate program extension, and reduce the coupling of code.
Layering should adhere to the principle of encapsulation and sequential access
Transferring data between different tiers through entity classes
A rough explanation of Java EE layered knowledge points