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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -