mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-12-24 06:58:51 +00:00
fix: 当值为null时放弃后续解析
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
20f306288f
commit
b39e091cfc
@ -60,8 +60,10 @@ public abstract class AbstractInjectConfig {
|
||||
if (value == null) {
|
||||
if (def != null) {
|
||||
value = def.value();
|
||||
} else if (field.getAnnotation(Nullable.class) == null) {
|
||||
Log.warning(String.format(PATH_NOT_FOUND, path));
|
||||
} else {
|
||||
if (field.getAnnotation(Nullable.class) == null) {
|
||||
Log.warning(String.format(PATH_NOT_FOUND, path));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user