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.