educative.io

Can there be more than one ApplicationContexts in a JVM ? If yes, what is a good use-case for it?

Can there be more than one ApplicationContexts in a JVM ? If yes, what is a good use-case for it ?

In Spring, you can have more than one ApplicationContexts but they will be in the parent and child hierarchy. There is a choice for more than one for understanding concepts but having one ApplicationContext is recommended.