I need to Inject a Map to a bean property and when map entries are traversed it should return them in insertion order. In Java, this is similar to the LinkedHashMap. But as I can’t find anything in spring documentation related to the ordering of tag, I’m not sure whether I can use to use it in this scenario.
Can someone please let me know the whether I can use for this purpose.
Many thanks
The default is
LinkedHashMap–MapFactoryBeanis used to create instances ofMap. According to docs:and its setTargetMapClass method:
so no need to use
<util:map>here.