Applicationcontext.xml File Contents:
<?xml version= "1.0" encoding= "UTF-8"? ><beans xmlns= "http://www.springframework.org/ Schema/beans "xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:aop="/HTTP/ Www.springframework.org/schema/aop "xmlns:context=" Http://www.springframework.org/schema/context " xmlns:tx = "Http://www.springframework.org/schema/tx" xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/ spring-beans-3.0.xsd http://www.springframework.org/ schema/context http://www.springframework.org/schema/ context/spring-context-3.0.xsd http:// www.springframework.org/schema/aop http:// Www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd "></beans>
Web. XML file contents:
<listener><listener-class>org.springframework.web.context.contextloaderlistener</listener-class ></listener><context-param><param-name>contextConfigLocation</param-name>< Param-value> Classpath*:applicationcontext.xml </param-value></context-param>
Config applicationcontext.xml in Web. xml