Skip to content

Commit b6ea3da

Browse files
committed
fix: 에러 및 builder 경고 해결
- Hashtag와 Likes에 @Builder.Default 추가 - Spring과 commons-logging의 충돌을 피하기 위해 commons-logging.jar를 제거
1 parent d0d75c1 commit b6ea3da

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ dependencies {
5757
testImplementation 'org.springframework.boot:spring-boot-starter-test'
5858
testImplementation 'org.springframework.security:spring-security-test'
5959
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
60+
61+
// Spring과 commons-logging의 충돌을 피하기 위해 commons-logging.jar를 제거
62+
implementation('org.springframework.boot:spring-boot-starter') {
63+
exclude group: 'commons-logging', module: 'commons-logging'
64+
}
6065
}
6166

6267
tasks.named('test') {

src/main/java/com/solucitation/midpoint_backend/domain/community_board/entity/Hashtag.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class Hashtag {
2222
@Column(name="hashtag_name", nullable = false)
2323
private String name;
2424

25+
@Builder.Default
2526
@OneToMany(mappedBy = "hashtag", fetch = LAZY)
2627
private List<PostHashtag> postHashtags = new ArrayList<>();
2728
}

src/main/java/com/solucitation/midpoint_backend/domain/community_board/entity/Likes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class Likes {
2828
@JoinColumn(name="member_id", nullable = false)
2929
private Member member;
3030

31+
@Builder.Default
3132
private Boolean isLike = true;
3233

3334
@CreationTimestamp

0 commit comments

Comments
 (0)