Spring官方
Spring框架文档
spring-boot文档
es
Github deploy key
Github OAuth
Bootstrap
maven资料库
okHttp
thymeleaf基本用法
UML图
Mybatis整合Spring/Springboot
H2
Thymeleaf使用文档
html转译与反转译
ErrorHandler错误处理机制
JQuery API文档
Flyway
Flyway简单实例
Lombok maven
Lombok
IDEA热部署Automatic Restart(清除浏览器缓存:ctrl+shift+delete)
Mybatis Generator
Mybatis Generator分页插件
common lang
Moment.js—JavaScript 日期处理类库
Markdown插件
MarkdownToHtml
CREATE TABLE USER(
ID INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
ACCOUNT_ID VARCHAR(100),
NAME VARCHAR(50),
TOKEN CHAR,
GMT_CREATE BIGINT,
GMT_MODIFIED BIGINT
);select *
from table_name
[LIMIT N],[ OFFSET M]
-- range page(页码) offset(偏移量) size(每页大小)
-- 0-5(0,5) 1 N = size * (page - 1) 5
-- 6-10(5,5) 2
-- 11-15(10,5)
M = 5
N = size * (page - 1)
pageCount(页数) = total % offset = 0 ? total/offset : total/offset+1 mvn flyway:migrate //将更新的脚本同步到数据库
mvn -Dmybatis.generator.overwrite=true mybatis-generator:generate //do的创建windows用\ mac用/ 不然运行成功了还是没有文件生成?
generator分页插件:<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"></plugin>$.ajax({
type: "POST",
url: "/comment",
contentType: 'application/json',
data: JSON.stringify({
"parentId": id,
"content": content,
"type": 1
}),
success: function (response) {
console.log(response)
},
dataType: "json "
});