Energy Project XML FILE--App-datasource.xml

Source: Internet
Author: User

<?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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.