KjbPropertyInjector 버그 수정

This commit is contained in:
Rinjae
2025-12-10 22:22:06 +09:00
parent 7136a36e78
commit 9868547459
@@ -94,12 +94,12 @@ public class KjbPropertyInjector {
private static Object convertValue(Class<?> type, String rawValue) {
if (rawValue == null) return null;
if (type == String.class) return rawValue;
// 빈 문자열인 경우 primitive 타입은 null 반환 (필드의 기본값 유지)
// 빈 문자열인 경우 null 반환 (필드의 기본값 유지)
if (StringUtils.isEmpty(rawValue)) {
return null;
}
if (type == String.class) return rawValue;
try {
if (type == Integer.class || type == int.class) return Integer.valueOf(rawValue);