---
title: "mybatis自动生成工具"
author: "wodeguozili"
date: "2018-10-09T22:38:56Z"
tags: ["mybatis-generator"]
categories: ["编程语言"]
slug: "mybatis"
draft: false
lastmod: "2018-10-09T22:38:56Z"
id: 2431889
url: "https://wodeguozili.iteye.com/blog/2431889"
---

mybatis是一套半自动化的orm框架，使用需要写相关sql及对应的mapper文件，此工具使用mybatis-generator自动生成代码，自己封装了一下，变成一个小工具，运行bat文件自动生成。

 

运行步骤：

1、修改generatorConfig.xml中jdbcConnection节点内容为需要连接的数据信息

2、修改generatorConfig.xml中table节点内容为数据库表名

3、运行generatorFile.bat即可