文章目录
自己手写mapper,dao也行就是有点麻烦 用mybatisGenerator逆向工程试试吧
先附上项目地址吧,给有需要的人参考参考,
没有用到的mybatisGenerator的项目架子
https://gitee.com/rdsunday/springboot-mybatis-shelf
带mybatisGenerator的项目架子
https://gitee.com/rdsunday/springboot-mybaits
最重要的就是maven启动配置,代码可以直接参考上面地址上的代码
上面这张图包含的信息有点多,按照箭头提示打开有关页面
mybatis-generator:generate -e
然后apply ,点击ok,就行了
按箭头指示点击运行就可以了
说明一点idea2017版本,不知道其他版本界面有什么不同