Skip to content

Conversation

@yeojinhwang
Copy link

No description provided.


private String title;
private String content;
private Date created_at;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

자바의 경우 snake_case는 잘 쓰지않고 camelCase를 이용합니다

public class PostController {

@PostMapping("/")
public String WritePost(char title, char writer, String content){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

참고로 java의 char형은 한글자만 입력가능합니다. String을 사용하는 것이 좋아보입니다.


import java.util.Date;

public class Post {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getter Setter 직접 구현하신거 좋은 것 같습니다ㅎㅎ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants