Declaring Spring Bean in Parent Context vs Child Context

If you’re going to use Spring MVC, you definitely need to understand Spring MVC’s ApplicationContext hierarchy. You should also learn something about the basic components and lifecycles in a servlet container, since you seem to be confused about how listeners and servlets work, too. To explain your situation briefly: You’re creating two ApplicationContexts: the root … Read more