KjbPropertyInjector 버그 수정
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user