Using ssm (spring springmvc and mybatis ' has been around for three months, and the project is technically no more difficult, and based on the existing technology, the desired functionality can be achieved. Certainly there are a lot of things that can be improved. Not previously recorded ssm integration process, It was just a good time to build a small project and build it up better than the project. The previous problem solving process and methods are not recorded in time, later in their own small project encountered me to organize and share. this time , first, three framework integration process. Personally, the use of frames is not difficult, the key to understand their ideas, which is very helpful for us to improve the level of programming. However, if you do not use, talk about the idea becomes an armchair!!! first technology, then thought. Practice is the real truth.
Springis an open source framework thatSpringis in2003Year rise of a lightweightJavaDevelopment Framework, byRod JohnsonIn his writingsExpert one-on-one EE Development and DesignSome of the concepts and prototypes described in this article are derived. It is created to address the complexities of enterprise application development.Spring uses basic JavaBean to accomplish things that were previously only possible by EJBs . However, the use of Spring is not limited to server-side development. From the standpoint of simplicity, testability, and loose coupling, any Java application can benefit from Spring . In short,Spring is a lightweight control inversion (IoC) and aspect-oriented (AOP) container framework.
1.2, SPRINGMVC
Spring MVC is a follow-on product of springframework and has been integrated into spring Web Flow . Spring MVC separates the roles of controllers, model objects , dispatchers, and handler objects, and this separation makes them easier to customize.
1.3, MyBatis
MyBatisBen isApacheAn open-source projectIBatis, 2010This project was created byApache Software FoundationMigrated to theGoogle Code, and renamed toMyBatis。MyBatisis a based onJavaOfPersistence LayerFramework.IBATISProvided byPersistence LayerFramework includesSQL MapsAndData Access Objects(dao) MyBatis eliminate almost all the jdbc mybatis use simple xmljava pojos ( General java object "map to records in the database .
Detailed address turn from: http://blog.csdn.net/zhshulin/article/details/37956105
SSM Framework-Detailed Integration tutorial (Spring+springmvc+mybatis)