Reputation: 833
If I have a configuration file (yml
or properties
) and I have a blank entry like the one below:
some.entry =
When I load that entry as a @Resource
of a given bean, like this:
@Resource(name = "someEntry")
Map<String, List<String>> someMap;
Will the someMap
end up as null
or an empty Map?
And would the behavior be different if instead of @Resource
a similar approach with @Value
is used?
Upvotes: 0
Views: 652
Reputation: 1149
Both @Resource
and @Value
will convert some.entry =
to null
.
Upvotes: 1