🐛 공지사항 등록시 id가 빈문자열로 등록되는 bug fix

This commit is contained in:
jini
2023-03-31 01:36:10 +09:00
parent a2b580e8e7
commit 022e344fea

View File

@@ -7,13 +7,9 @@ import org.springframework.data.mongodb.core.mapping.Document
import java.time.LocalDateTime
@Document(value = "notice")
internal class NoticeDocument {
internal class NoticeDocument(var title: String, var content: String) {
@Id
var id: String = ""
var title: String = ""
var content: String = ""
var id: String? = null
@CreatedDate
var createdAt: LocalDateTime = LocalDateTime.now()