Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harry #8

Open
wants to merge 6 commits into
base: review/kotlin
Choose a base branch
from
Open

Harry #8

wants to merge 6 commits into from

Conversation

minkukjo
Copy link
Member

No description provided.

@kkw01234
Copy link
Member

DB까지 다 연결시켜버리는 해리 클라스...

) {

@PostMapping
fun createBoard(@RequestBody boardRequest: BoardRequest, @RequestParam name:String):String {
Copy link
Member Author

Choose a reason for hiding this comment

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

컨트롤러에서 모든 로직을 처리하는 것은 아름답지 않네요
Service 쪽으로 로직을 옮기는게 맞는 것 같습니다


class UserJoinRequest (
@JsonProperty("name")
val name: String

Choose a reason for hiding this comment

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

프로젝트소스에서도 이런거를 많이봤는데 변수 이름이 같은데 @JsonProperty("name")
를 어노테이션 하는거는 코딩 스타일 인가요? 궁금!

Copy link
Member Author

@minkukjo minkukjo Aug 25, 2020

Choose a reason for hiding this comment

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

@DongHyukki 넹 스타일의 차이인 것 같습니다. 나중에 프로퍼티 이름이 변경되더라도 Request key가 같아야하는 경우가 있을 수도 있다고 생각해서 저는 다 달아주는 편이에요~

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