First, this is now the most basic layering method, combining the SSH architecture. The Modle layer is the entity class for the corresponding database table. The DAO layer uses Hibernate to connect to the database, to manipulate the database (add and revise). Service layer: Reference to the corresponding DAO database operation, where you can write your own code (such as simple judgment). Action layer: reference to the corresponding service layer, where the combination of struts configuration file, jump to the specified page, of course, can accept the page to pass the request data, can also do some calculation processing. All of the above hibernate,struts need to be injected into spring's configuration file, and spring links these together to become a whole.
DAO additions and deletions, service for simple judgment (try,except, etc.), action filter
The insert for DAO corresponds to the service's new
DAO Service Action What is the function of each