【 Spring Boot 实战开发】10 分钟快速构建一个自己的技术文章博客
1.图形界面效果
2.工程源代码
https://github.com/KotlinSpringBoot/saber
3.数据库结构
package com.light.saber.model
import com.fasterxml.jackson.annotation.JsonFormat
import java.util.*
import javax.persistence.*
@Entity
class Knowledge {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
var id: Long = 0
@Column(length = 100, unique = true)
var title = ""
@Lob
var answer = ""
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "GMT+8")
var gmtCreate = Date()
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "GMT+8")
var gmtModified = Date()
}