2021年6月1日星期二

SpringBoot实现整合mybatis-generator-maven-plugin 1.4.0

SpringBoot实现整合mybatis-generator-maven-plugin 1.4.0

创建 Maven 工程

网上有很多教程且 Idea 可以直接创建 这里就不进行

table标签中需要指定tableName和生成的实体名字

<?

运行生成文件

这里推荐使用IDEA
我们只需要找到右边侧栏中的maven
依次找到 plugins–>mybatis-generaltor–>mybatis-generaltor:generaltor
之后双击即可,此时刷新一下项目就自动生成我们想要的,mapper和

image

提示 BUILD SUCCESS 即生成成功!

[INFO] Scanning for projects...[INFO] [INFO] --------------------------< top.orginly:mall >--------------------------[INFO] Building mall 0.0.1-SNAPSHOT[INFO] --------------------------------[ jar ]---------------------------------[INFO] [INFO] --- mybatis-generator-maven-plugin:1.4.0:generate (default-cli) @ mall ---[INFO] Connecting to the Database[INFO] Introspecting table mall_user[INFO] Introspecting table mall_category[INFO] Introspecting table mall_goods[INFO] Introspecting table mall_order[INFO] Introspecting table mall_order_goods[INFO] Introspecting table mall_cart[INFO] Generating Primary Key class for table mall_user[INFO] Generating Record class for table mall_user[INFO] Generating Mapper Interface for table mall_user[INFO] Generating SQL Map for table mall_user[INFO] Generating Record class for table mall_category[INFO] Generating Mapper Interface for table mall_category[INFO] Generating SQL Map for table mall_category[INFO] Generating Record class for table mall_goods[INFO] Generating Mapper Interface for table mall_goods[INFO] Generating SQL Map for table mall_goods[INFO] Generating Primary Key class for table mall_order[INFO] Generating Record class for table mall_order[INFO] Generating Mapper Interface for table mall_order[INFO] Generating SQL Map for table mall_order[INFO] Generating Record class for table mall_order_goods[INFO] Generating Mapper Interface for table mall_order_goods[INFO] Generating SQL Map for table mall_order_goods[INFO] Generating Record class for table mall_cart[INFO] Generating Mapper Interface for table mall_cart[INFO] Generating SQL Map for table mall_cart[INFO] Saving file UserMapper.

image









原文转载:http://www.shaoqun.com/a/776077.html

跨境电商:https://www.ikjzd.com/

新单:https://www.ikjzd.com/w/79

亚马逊应用商店:https://www.ikjzd.com/w/531


SpringBoot实现整合mybatis-generator-maven-plugin1.4.0创建Maven工程网上有很多教程且Idea可以直接创建这里就不进行pom中generalto-maven-plugs中必须指定mysql驱动,并且明确版本<?table标签中需要指定tableName和生成的实体名字<?运行生成文件这里推荐使用IDEA我们只需要找到右边侧栏中的maven依
口述:我和空姐的一夜情的经过:http://www.30bags.com/m/a/254624.html
亚马逊美国站对家用婴儿换洗台安全规范:ASTM F2388-18:https://www.ikjzd.com/articles/145262
"血雨腥风"的价格战,看大卖如何应对的?:https://www.ikjzd.com/articles/145261
拍怕网:https://www.ikjzd.com/w/2205
vat:https://www.ikjzd.com/w/109
rfq:https://www.ikjzd.com/w/251
口述:我竟不恨小三N手段抢走我"高富帅"老公:http://lady.shaoqun.com/m/a/117364.html
跑去捉奸竟然把好友从床底拽出:http://www.30bags.com/m/a/252854.html
沃尔玛将会给批准的卖家提供免费2天送货徽章:https://www.ikjzd.com/articles/145268

没有评论:

发表评论