• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!