1.通过上两篇文章的学习,大致了解了spring和mybatis的架构和使用原理,下面这篇文章就将给出两者结合的一个小实例,通过该实例进一步探索这两个框架的魅力,工程所需要的所有jar包都在链接:http://pan.baidu.com/s/1kUZmpWb 2.spring+mybatis结合实例 (1)建立数据库mybatis,建立一张user表: (2)建立User.java类: package com.springMyBatis.system.model; public class Us…
①创建数据库和表,数据库为mytest,表为father和child DROP TABLE IF EXISTS child; DROP TABLE IF EXISTS father; CREATE TABLE child( child_id INT PRIMARY KEY auto_increment NOT NULL, child_name ) ); CREATE TABLE father( father_id INT PRIMARY KEY auto_increment NOT NULL,…