SSH getting started (Struts2.1 + Spring3.1 + Hibernate4.1)-Query System (I), struts2.1spring3.1

Source: Internet
Author: User

SSH getting started (Struts2.1 + Spring3.1 + Hibernate4.1)-Query System (I), struts2.1spring3.1

The so-called SSH refers to an integrated framework of struts + spring + hibernate. It is a popular open-source framework for Web applications.

The systems integrated with the SSH framework are divided into four layers: presentation layer, business logic layer, data persistence layer, and domain Module layer, to help developers build Web applications with clear structures, good reusability, and convenient maintenance in a short period of time. Struts is used as the overall infrastructure of the system and is responsible for the separation of MVC. In the model section of the Struts framework, business redirection is controlled, and the persistence layer is supported by the Hibernate framework. Spring is used for management, manage struts and hibernate. (From Baidu encyclopedia)

My graduation internship assigned a job to use the SSH framework to perform a query system. The result is in conflict with the test of drive school subject 3. It is very tragic that it did not catch up with the first check assignment, you can only make up for it after the National Day. I spent three days from the arrangement of the SSH framework to the simple implementation of the system. The concept is not very clear, but I only know how to do it. I wrote this article to get started with SSH later, avoid starting from scratch in the future (although I think that if I want to write an SSH project in the future, I must study it again and ignore it ~)

 

I. Prepare tools

Here I will provide a download link for MyEclipse, which happens to be included in the network disk (with cracking). Please consider other tools, because MyEclipse already comes with a database and Tomcat, you can use your own tools. I used the above tool here.

MyEclipse download link: Baidu online storage

MyEclipse cracking File Download link: Baidu online storage

2. Create a Web project and import SSH

The above configuration makes it possible to build the simplest SSH framework.

 

Iii. SSH configuration file

The most important of these two configuration files
Spring configuration file: applicationContext. xml. Stores entities to control the entire system.
Struts configuration file: struts. xml. Contains the action ing of actions.

The above is basically the whole process of configuration. It may be very simple, but it is also dirty. Due to limited space, the next article describes how to build a complete system.

 


In the ssh framework, how does hibernate and spring work?

Various management, struts implements mvc, hibernate is responsible for orm, spring manages various beans

Getting started with struts2, hibernate, spring, and SSH frameworks

I have a lot of tutorials I 've learned before. Do you want? Send an email to me if necessary. Threenoodles@163.com
They are both entry-level and easy to understand.

I sent a copy of struts2 to see how it works. If it is good, there will also be a set of hibernate and spring.

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.