设置 type 为 IdType.INPUT / IdType.AUTO,能正常生成数据库自增的 id ,得到数据库 AUTO_INCREMENT 从 1 开始自增的效果。
1 |
|
注意:检查数据表自增值的正确性,尤其 19 位长度自增 id 切换回自然数自增 id。(comment ‘xxx’ auto_increment = 8)
设置 type 为 IdType.INPUT / IdType.AUTO,能正常生成数据库自增的 id ,得到数据库 AUTO_INCREMENT 从 1 开始自增的效果。
1 | @TableId(value = "id", type = IdType.INPUT) |
注意:检查数据表自增值的正确性,尤其 19 位长度自增 id 切换回自然数自增 id。(comment ‘xxx’ auto_increment = 8)
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true