<?XML version= "1.0" encoding= "UTF-8"?><Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:context= "Http://www.springframework.org/schema/context"xmlns:p= "http://www.springframework.org/schema/p"Xmlns:tx= "Http://www.springframework.org/schema/tx"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/tx Classpath:org/springframewor K/transaction/config/spring-tx-4.1.xsd "Default-lazy-init= "false"> <!--<context:property-placeholder location= "classpath:spring/datasource.properties"/> - <BeanID= "DataSource1"class= "Org.apache.tomcat.jdbc.pool.DataSource"Destroy-method= "Close"> < Propertyname= "Poolproperties"> <Beanclass= "Org.apache.tomcat.jdbc.pool.PoolProperties"> < Propertyname= "Driverclassname"value= "Com.mysql.jdbc.Driver" /> < Propertyname= "url"value= "${jdbc.url}" /> < Propertyname= "username"value= "${jdbc.user}" /> < Propertyname= "Password"value= "${jdbc.password}" /> <!--Register the pool with JMX. In order for the connection pool object to create the MBean. - < Propertyname= "jmxenabled"value= "true" /> <!--The indication of whether objects would be validated by the idle object evictor. - < Propertyname= "Testwhileidle"value= "true" /> <!--The indication of whether objects would be a validated before being borrowed from the pool. - < Propertyname= "Testonborrow"value= "false" /> < Propertyname= "Testonreturn"value= "false" /> < Propertyname= "InitialSize"value= "${jdbc.initialpoolsize}" /> < Propertyname= "Maxactive"value= "${jdbc.maxactive}" /> < Propertyname= "Maxwait"value= "${jdbc.maxwait}" /> < Propertyname= "Minidle"value= "${jdbc.minidle}" /> < Propertyname= "Maxidle"value= "${jdbc.maxidle}" /> < Propertyname= "MaxAge"value= "60000" /> <!--The number of milliseconds to sleep between runs of the idle connection Validation/cleaner thread. - < Propertyname= "Timebetweenevictionrunsmillis"value= "15000" /> <!--The minimum amount of time an object could sit idle in the pool before it was eligible for eviction. - < Propertyname= "Minevictableidletimemillis"value= "60000" /> < Propertyname= "removeabandoned"value= "true" /> < Propertyname= "Removeabandonedtimeout"value= "+" /> < Propertyname= "Validationquery"value= "Select 1" /> < Propertyname= "Validationinterval"value= "30000" /> </Bean> </ Property> </Bean> <BeanID= "Ucentersessionfactory"class= "Org.mybatis.spring.SqlSessionFactoryBean"> < Propertyname= "DataSource"ref= "DataSource1" /> < Propertyname= "Mapperlocations"value= "Classpath:mybatis/mapper/ibs/*/*dao.xml"></ Property> </Bean> <Beanname= "Ucentermapperscannerconfigurer"class= "Org.mybatis.spring.mapper.MapperScannerConfigurer"> < Propertyname= "Basepackage"value= "Com.lime.ibs.*.dao" /> < Propertyname= "Sqlsessionfactorybeanname"value= "Ucentersessionfactory"></ Property> </Bean> <BeanID= "Txmanager"class= "Org.springframework.jdbc.datasource.DataSourceTransactionManager"> < Propertyname= "DataSource"ref= "DataSource1" /> </Bean> <!--Enable transaction annotation support - <Tx:annotation-drivenTransaction-manager= "Txmanager" /></Beans>
Energy Project XML FILE--App-datasource.xml