I have a bean which is a typed - map
in my xml. But when I try to use it using @Autowired
it does not work as expected. I also tried @Resource(name = "service")
as suggested in a related question in
stack overflow which also does not work.
@Resource (name = "service")
private Map<String, service> service;
Is there a way to see whether the bean in xml is instantiated properly. I am getting the attribute service value as null
. I have been working on this for a day. still could not solve the puzzle. though i ransacked spring reference and stackoverflow (strangely spring's map autowiring is difficult or i am not able to do it). Thanks for your help in advance.
Also strangely the related question i have refered to seems to have been accepted by many but does not work for me.