Skip to content

Commit 07099b7

Browse files
committed
fix: DemoProperties null 방지 기본값 추가
1 parent a452f44 commit 07099b7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/com/semosan/api/common/config/DemoProperties.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@
77
@ConfigurationProperties(prefix = "demo")
88
public record DemoProperties(
99
List<String> photoFilenames
10-
) {}
10+
) {
11+
public DemoProperties {
12+
photoFilenames = photoFilenames == null ? List.of() : photoFilenames;
13+
}
14+
}

0 commit comments

Comments
 (0)