mybatis 基础教程 1、引用mybatis.jar包,以后依赖包。 2、配置映射文件(一个是主配置文件,一个是sql映射文件),注意,mapper.xml 文件必须和dao放在一起。 3、mybatis.xml文件说明