What's the intended use of `servlet-context.xml`, `root-context.xml` and `web.xml`?
问题 I a new to Java Spring MVC web development. I am kind of confused by the 3 config files below. They are auto created by the STS webmvc project template. What's the intended use of them? Why do we need 3 config files rather than a single one? Is there any special reason for their different locations? 回答1: root-context.xml is the Spring Root Application Context Configuration. It's optional. It's for configuring your non-web beans. You need it for Spring Security or OpenEntityManagerInView