Skip to content

Commit

Permalink
docs:加入数据库命名规范
Browse files Browse the repository at this point in the history
  • Loading branch information
misterchaos committed May 2, 2020
1 parent f3b0d12 commit e3b7010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,测试接口

> 注意:数据库表必须符合以下规范<br>
> 每张表的主键命名为 表名_id 如: user_id
## 三、生成的代码示例

### 1.Controller模板代码示例
Expand Down

0 comments on commit e3b7010

Please sign in to comment.