Skip to content

自动生成MyBatis配置文件的插件MyBatisGenerator使用demo

Notifications You must be signed in to change notification settings

fish-java/MyBatisGeneratorImpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyBatisGenerator

基于数据库的表结构反向生成常用的MyBatis样板代码。

它可以是IDE的插件,也可以是maven的插件,推荐使用maven插件,做到跨环境。

使用

  • 安装maven插件,参考pom文件。

    需要在插件中指明我们的配置文件的位置

  • 编写配置文件mbg.xml,具体内容参考代码注释

  • 配置好之后直接在执行maven插件就行了, 它可以自动的生成从数据库中读取并直接生成相关代码

About

自动生成MyBatis配置文件的插件MyBatisGenerator使用demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published