Development of Application System framework selection instructions

Source: Internet
Author: User

The framework I chose is the SSH framework, based on an integrated framework of struts2+spring+hibernate. There are two reasons to choose this framework for application development: First, the SSH framework is one of the most familiar frameworks I have so far, and it is a popular open source framework for Web applications. Second, the current mainstream framework technologies are: the Struts framework based on the MVC pattern and the IOC-based The spring framework of the schema and the object/Relationship mapping framework hibernate.

One, Struts 2 architecture:

The Struts web Framework is a free open source solution for Java Web applications, where Web applications differ from traditional Web sites in that Web applications can create a dynamic response, and many sites submit only static pages. A Web application can interact with the database and the business logic engine to customize a response. Web applications based on the Java Service interface are sometimes mixed with database code, interface design coding, and control flow. In fact, we found that large applications would become difficult to maintain unless these relationships were left out. One way to separate these relationships in a software application is to Ono an MVC (Model-view-controller) architecture. Model represents the enterprise data Code, view represents the interface design code, controller represents the boot. The struts framework is designed to help developers create Web applications using the MVC architecture.

Second, spring framework

Spring is also an open source framework that has been created to address the complexities of enterprise application development. The main function of spring is to be able to use basic JavaBean instead of EJBS and to provide more enterprise application capabilities. Spring is a lightweight control inversion (IOC) and facet-oriented (AOP) container framework that can be used in any environment without interfering with other framework technologies. The main feature of spring is that it facilitates inheritance of other frameworks. The spring framework is a lightweight framework that uses the IOC container to uniformly manage dependencies between components to reduce the tight process of coupling between components. The core idea of the IOC inversion control mode is that the process of object building is carried out outside the object factory, and the object engineering builds the corresponding object by polymorphic way, in fact it returns an object that implements an interface.

Third, Hibernate

Hibernate is an open source object-relational mapping framework that provides a lightweight object encapsulation of JDBC and allows Java programmers to manipulate the database using the idea of object programming. Hibernate has 5 core interfaces: Session, sessionfactory, Transaction, query, and configuration. Hibernate is the interface through which persistent objects are accessed, and transaction control can be performed.

In the SSH framework, struts acts as the architecture of the whole system, is responsible for the separation of MVC, then in the model part, controls the business of the bar, and then uses Hibernate to support the persistence layer, spring is for finding, locating, creating, Managing objects and handling dependencies between objects provides support for struts and hibernate to work better.

Development of Application System framework selection instructions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.