<?XML version= "1.0" encoding= "UTF-8"?><Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xmlns:p= "http://www.springframework.org/schema/p"Xmlns:context= "Http://www.springframework.org/schema/context"Xmlns:mvc= "Http://www.springframework.org/schema/mvc"xsi:schemalocation= "Http://www.springframework.org/schema/beans classpath:/org/springframework/beans/factory/xml /spring-beans-4.1.xsd Http://www.springframework.org/schema/context Classpath:/org/springframework/con Text/config/spring-context-4.1.xsd Http://www.springframework.org/schema/mvc Classpath:/org/springframe Work/web/servlet/config/spring-mvc-4.1.xsd "Default-lazy-init= "true"> <Context:component-scanBase-package= "Com.lime.ibs"use-default-filters= "false"> <Context:include-filtertype= "Annotation"expression= "Org.springframework.stereotype.Controller" /> <Context:include-filtertype= "Annotation"expression= "Org.springframework.web.bind.annotation.ControllerAdvice"/> </Context:component-scan> <Beanclass= "Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"> < Propertyname= "Messageconverters"> <Beanclass= "Org.springframework.http.converter.StringHttpMessageConverter"> < Propertyname= "Supportedmediatypes"> <List> <value>Application/json;charset=utf-8</value> <!--<value>text/html; charset=utf-8</value> - </List> </ Property> < Propertyname= "Writeacceptcharset"> <value>False</value> </ Property> </Bean> </ Property> </Bean> <Beanclass= "Org.springframework.web.servlet.view.InternalResourceViewResolver"> < Propertyname= "prefix"value="/" /> < Propertyname= "suffix"value= ". jsp" /> </Bean> <Mvc:annotation-driven/> <!--<mvc:interceptors> <mvc:interceptor> <mvc:mapping path= "/**"/> <mv C:exclude-mapping path= "/ammeter/perf"/> <mvc:exclude-mapping path= "/watermeter/perf"/> & Lt;bean class= "Com.lime.ibs.web.filter.SessionInterceptor"/> </mvc:interceptor> </mvc:interceptors& Gt - </Beans>
Energy Project XML FILE--Springmvc-servlet.xml