The path to the architect 20th Day Universal Framework Spring (II) MAVEN combines spring with Ibatis

Source: Internet
Author: User

First, the preface

Last time we talked about struts combined with spring and using spring's jdbctemplate to build the engineering framework, we faced the inability to manage the jar library, the inconvenience of engineering release, the jar package taking up too much space in the project, Jar pack conflict, management, and even leaking packets. So, before we talk about "universal Frame Spring (ii)", we teach an article about using MAVEN to manage our jar library.

Starting today we will be combining the universal framework Spring (i) with the SSX maven to further enrich our framework, so today we're going to build our SSI framework using the IBATIS3 combination of SS, and we'll name the framework beta.

II. SSI Framework

Do you remember the architecture Chart of our framework we talked about on the 18th day? Above this is our today's architecture diagram, in addition to the struts,spring layer, we need to change the DAO layer that is the original SQL part of the Ibatis, we are using the Ibatis version 3.

As we have stated in the 18th day the benefits of such a framework are:

Replacement of related technologies in the layer does not affect other levels

So for us we need to change the code only Datasource.xml and DAO layer of the 2 interface two classes, then let's take a look at this based on the full annotation of the SSI framework is how to build it.

III. Building an SSI framework

3.1 Establishment of the project

We're still using MAVEN to build our project.

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.