MyBatis Generator使用方法

  1. 搜索MyBatis官网,http://www.mybatis.org/generator/running/running.html,MyBatis Generator使用方法eclipse插件(小白)在eclipse中找到手动配置网址https://dl.bintray.com/mybatis/mybatis-generator。
  2. 打开eclipse,在功能框中选择help,MyBatis Generator使用方法eclipse插件(小白)选择如图,
  3. MyBatis Generator使用方法eclipse插件(小白)
  4. 输入第一步的网址选择添加,然后next,安装完成后会提示重启eclipse,重启。
  5. MyBatis Generator使用方法eclipse插件(小白)在项目src目录下选择如图,
  6. MyBatis Generator使用方法eclipse插件(小白)选择MyBatis Generator
  7. 生成MyBatis Generator使用方法eclipse插件(小白)
  8. 填写配置文件,
    jdbcConnection 指定数据库连接信息
    javaModelGenerator 指定目标项目和包
    sqlMapGenerator 指定目标项目和包
    javaClientGenerator
    table 至少一个数据库表

相关文章: