오류잡기

The things you need to know

풀이

구조만들기

나중에 서비스도 들어와야겠져

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ffa5a1f3-fa18-4b2b-b10b-efb840202d63/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/701d9884-a886-4b57-91c1-2595e49a5dc6/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a4e825ea-5b05-4f31-9331-7194bc147a58/Untitled.png

날짜까지 해서

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/96bff465-74b3-4316-a01d-c801fb84a27b/Untitled.png

@Data
public class Post {
private int id;
private String title;
private String content;
private User user;
private Timestamp created;
private Timestamp updated;
}
@Data
public class User {
private int id;
private String username;
private String password;
private String email;
private Timestamp created;
private Timestamp updated;
}
@Data
public class CMRespDto<T> {
private int code;
private String msg;
private T data;
}

참고할 링크

날짜와 시간 API with Java8