Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Not able to inject HashMap Object using setter dependency injection in spring.

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to inject HashMap Object using util namespace but not able to get HashMap class for that Object (LinkedHashMap class name is getting printed.)
Not able to figure out why this is happening.

I am using below Spring jars in this test:
1. spring-beans-5.0.7.RELEASE.jar
2. spring-context-5.0.7.RELEASE.jar
3. spring-core-5.0.7.RELEASE.jar
4. spring-expression-5.0.7.RELEASE.jar
5. commons-logging-1.1.1.jar

1. Bean Class :

2.  Driver class to test the output :

3. xml configuration file :

And the out put I able to see is :

I am expectting It should be HashMap class.

Please help.
I didn't say it. I'm just telling you what this tiny ad said.
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic