Advantages and disadvantages

The advantages of Struts2 framework (MVC framework) are as follows:

        1) The MVC pattern is implemented, with a clear hierarchical structure, so that programmers only need to focus on the implementation of business logic;

        2) The rich tag library greatly improves the efficiency of development;

        3) Struts2 provides rich interceptor implementations

        3) Through the configuration file, you can grasp the relationship between the various parts of the entire system;

        4) Exception handling mechanism, you only need to configure the exception mapping in the configuration file to handle the exception accordingly;

 

 

The advantages of the Spring Framework are as follows:

        1) Non-invasive (the existence of the Spring framework cannot be felt in the business logic code);

        2) The coupling between the various components is extremely loose;

        3) There is no need for programmers to implement the singleton mode by themselves;

        4) Through AOP, transaction management and log management can be realized;

        5) Integrate other frameworks, such as: struts framework and hibernate framework;

 

The advantages of the Hibernate framework (ORM framework) are as follows:

        1) Object/relational database mapping (ORM), you only need to manipulate objects when using, making development more object-oriented;

        2) Non-invasive;

        3) The concise HQL statement reduces the amount of code for JDBC and SQL to operate the database;

        4) Good portability;

        The disadvantages are as follows:

        1) The support for batch update and deletion is not good;

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326945336&siteId=291194637