From e3b701091ea3d95c067d911781d35b117e7457aa Mon Sep 17 00:00:00 2001 From: misterchaos Date: Sat, 2 May 2020 13:31:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E5=8A=A0=E5=85=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=91=BD=E5=90=8D=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d138978..4cfc559 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,13 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/flower?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT spring.datasource.username=root spring.datasource.password= -``` +``` - 运行CodeGenerator类,输入Author,输入数据库表名 - 运行SpringbootMybatisPlusGeneratorApplication,测试接口 +> 注意:数据库表必须符合以下规范
+> 每张表的主键命名为 表名_id 如: user_id + ## 三、生成的代码示例 ### 1.Controller模板代码示例