What is difference between class path , file system?
spring, spring-mvc
Solution
`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.
Problem
I know that: `ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml"); ` loads context definition from an XML file located in the classpath, treating context definitions as classpath resources. `ApplicationContext context = new FileSystemXmlApplicationContext("bean.xml"); ` loads context definition from an XML file in the filesystem. `XmlWebApplicationContext` loads context definition from an XML file contained within a web application. But, what does it exactly mean?? Thanks :)