ApplicationContext context=new ClassPathXmlApplicationContext("/WEB-INF/spring/DispatcherServlet-servlet.xml");
above logic throwing FileNoFoundException while i try to run my web Application. can anybody tell me how to read the configuration file which is located inside WEB-INF. i have verified so many examples but i could not found the proper solution .here my doubt is can we call like this or not. i given my servlet location in web,xml also. here is my web.xml code.
<servlet>
<servlet-name>DispatcherServlet</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/DispatcherServlet-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
please tell me i am doing write approach or not. any suggestions will appreciate