I know that:
ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
loads context definition from an XML
ClassPathXmlApplicationContext
will read files from your classpath. They must be in classes
folder of your web application or in a jar
in your lib
folder.
FileSystemXmlApplicationContext
can access all your file system, for example c:/config/applicationContext.xml
.
XmlWebApplicationContext
certainly can access to files contained in your web application, but this is not the most important thing. It implements WebApplicationContext and this means that it will detect ServletContextAware beans, register custom scopes (request, session, ...) among other things.