mybatis映射文件的使用(一),工程目录结构、源代码和数据库

代码开发环境

  • 开发工具为IDEA
  • 工程构建方式为maven
  • 数据库为mysql 5.7.20
  • mybatis版本为 3.1.1
  • mysql-connect-java jar包版本为 5.1.34
  • 数据库数据为mysql官方数据库实力sakila,下载地址为https://dev.mysql.com/doc/index-other.html

项目目录结构

  • 父工程为DeepMyBatis
  • 实例module为chapter04
  • mudule依赖了common module,使用了其中的SqlSessionFactoryUtil类

 

测试代码源码下载

 https://gitee.com/shaotju/DeepMyBatis.git

原文地址:https://www.cnblogs.com/canger/p/9918310.html