Github地址:https://github.com/javthon/mybatis-generator-yml-maven-plugin/blob/master/Readme-CN.md
在線體驗:https://xxf.cool/tools/mybatisGenerator
代碼都在這個地址復(fù)制粘貼
Step 1: 確保您的工程是maven工程遣铝,在您的maven pom.xml文件中添加mybatis-generator-yml-maven-plugin插件焚廊,下載插件需要等待幾分鐘:
Step 2: 在resources目錄下新建generatorConfig.yml拾给,并將下方完整配置樣例中的代碼粘貼進(jìn)去
Step 3: 確保配置信息無誤后運行mvn mybatis-generator-yml:generate连茧,在Intellij IDEA中的maven窗口的plugins下可以找到這個命令,雙擊就能運行
Github地址:https://github.com/javthon/mybatis-generator-yml-maven-plugin/blob/master/Readme-CN.md