Spring scope HashMap problems -


i've got simple bean

<bean id="map" class="java.util.hashmap"  > </bean> 

i assume has singleton scope. every time call getbean("map") empty hashmap though filled before that.

why happening?

the application context created when application started , destroyed when application ends. can have singleton working in boundaries of 1 application context.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -