# mybatis-generator **Repository Path**: codedesign-fun/mybatis-generator ## Basic Information - **Project Name**: mybatis-generator - **Description**: mybatis的dao、mapper、po生成工具 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-06-24 - **Last Updated**: 2024-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 生成代码步骤 1. `generatorConfig.xml`配置数据库地址、表、生成参数 2. 拷贝`resources`文件夹中的xml文件绝对路径,运行`MybatsiGenerator`类,生成到指定路径 注意点: 生成的sql ddl中 int tinyint的位数约束,没有数值会造成生成boolean的情况 > [generatorConfig配置属性](https://www.jianshu.com/p/2cace13b7819) > [generatorTable属性设置](https://www.jianshu.com/p/9a6e9f93ba6d)