真赞!IDEA中这么玩MyBatis,让编码速度飞起!
云栖号资讯:【 点击查看更多行业资讯 】 在这里您可以找到不同行业的第一手的上云资讯,还在等什么,快来! IDEA 逆向 MyBatis 工程时,不像支持 Hibernate 那样有自带插件,需要集成第三方的 MyBatis Generator。 MyBatis Generator的详细介绍 http://mybatis.github.io/generator/index.html 本篇博客图解 MyBatis Generator 的使用过程,并结合实战说明逆向工程的使用方式。 搭建 MyBatis Generator 插件环境 添加插件依赖 pom.xml <!--mybatis 逆向生成插件--> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version> <configuration> <configurationFile>src/main/resources/generatorConfig.xml</configurationFile> <verbose>true</verbose> <overwrite>true</overwrite> </configuration>