The path to the architect 18th Day Universal Framework Spring (i)

Source: Internet
Author: User

The previous row has just changed a new working environment, and then my baby is also just born, there is no time to work after the other things, for a while.

Today, my son is a week old, my wife and I take care of her family, finally I can take a break, so I decided to continue this series of posts, but also dedicate this article to my newborn son and the 10 months of hardship of love.

Ii. Basic Concepts

Spring, as a popular framework, gives us too much convenience in the framework of everyday engineering, like a skeleton in which you can shape skin and flesh and give it to its soul.

Starting today we're going to have a few days in a row based on spring for the software development Framework, because spring is so widely used, this series of tutorials can be used as a basic tutorial for spring development as a "model or formulaic tutorial".

This set of tutorials will cover the following topics:

1) spring+struts1+jdbctemplate;

2) Spring+struts1+hibernate;

3) Spring+struts2+ibatis;

4 Unit Test of any DAO layer in Spring+struts1 and the other;

5 even talk about using spring to build applications, yes, you're right. Using spring to build a stand-alone Java should

With programs, especially in the banking and insurance industry, there is a business called "Batch Processing", which is the application, so we use spring to

What are the benefits of our batch work? Please look forward to it!

Third, Spring+struts+jdbctemplate

3.1 Framework Introduction

As an architect, you must also be a "framework architect", and the architecture is broadly speaking, and its knowledge needs to be covered by hardware, software, protocols, and even business backgrounds.

But when an architect is in a project it must be a "framework master", just like building a house, the frame is good, the house can be built to be strong.

Let's start with our first house.-spring in our project, first look at the architecture diagram, I usually like to use Visio to the easel composition, finished painting directly in the workspace of Visio Ctrl + A after the election back to Word after press CTRL + V, So you have a picture of Visio in your word text, and you double-click the Visio diagram in the Word document to automatically open Visio's workspace in the current document so you can edit your Visio diagram so you don't have to go back and forth in Word and Switch between Visio, and do not have to turn Visio into a JPG and then insert a picture in Word, this is a standard mode of operation, hope to be able to bring convenience for everyone in the future operation. Of course, usually see good documents, good schema to collect it, and classify the document will be more beautiful.

Look, this is our frame.

Spring

Here we use 3.1, which is responsible for IOC,AOP and other work, for the Agent business Layer (service layer) of the transaction.

Struts

Here we use 1.3, which is responsible for the control layer and related JSP pages (using the Struts tab).

The control layer then accesses the database layer through the business layer.

Spring Jdbc Template

Responsible for ormapping, because we use the data also need to carry out some complex summary and calculation, so in the future system development will also need to develop a series of storeprocedure (stored procedures), with JDBC template not only convenient and flexible use of SQL query statements, It also facilitates access to a variety of database stored procedures.

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.