Skip to content

Commit

Permalink
📝 提供低版本 mysql 开启 timestamp 类型默认值为 null 的支持的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Hccake committed Apr 24, 2024
1 parent a97a3f8 commit 28efc46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
| Redis | 3.2 + |
| node | 16 + |

> 5.7.x 系列 mysql,需要开启 timestamp 类型默认值为 null 的支持
:::warning
5.7.x 及以下版本的 MySQL,需要开启 timestamp 类型默认值为 null 的支持, 在执行 sql 前先执行以下 sql.
```sql
set session explicit_defaults_for_timestamp = 1;
```
注意,该设置仅当前会话内生效,所以执行完成后必须在同一会话内进行 sql 执行。
:::

**另:请在您的开发工具中安装好 `Lombok` 插件, lombok 的使用参看其 [官方文档](https://projectlombok.org/)**
> 最新版本的 Idea 中已经自带了 Lombok 插件
Expand Down

0 comments on commit 28efc46

Please sign in to comment.