Difference between Java Singleton and Spring Singleton?

There is common misunderstanding between Spring Singleton and Java Singleton classes.  If you don’t know Singleton design pattern Please read Singleton Design pattern first. Java singleton class is per Classloader and Spring’s singleton is per application context. Java considers something a singleton if it cannot create more than one instance of that class within a […]

Continue Reading