Skip to content

Commit

Permalink
fix: field가 1개일 때 Builer를 사용하면 역직렬화 오류 발생 (#43)
Browse files Browse the repository at this point in the history
@Jacksonized를 사용하여 역직렬화를 진행하여 해결. @Jacksonized는 @builder와 함께 쓰임
  • Loading branch information
toychip committed Jan 18, 2024
1 parent aecf340 commit 07d1309
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.api'
version = '1.4.0-jwt'
version = '1.4.2-edit'

java {
sourceCompatibility = '17'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.api.TaveShot.domain.post.comment.dto.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.extern.jackson.Jacksonized;

@Getter
@AllArgsConstructor
@Jacksonized
@Builder
public class CommentEditRequest {
private final String comment;
private String comment;
}

0 comments on commit 07d1309

Please sign in to comment.