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
Post a Comment