123456789101112131415161718192021222324252627282930313233343536 |
- <?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:jee="http://www.springframework.org/schema/jee"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">
- <!-- For mail settings and future properties files -->
- <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="ignoreUnresolvablePlaceholders" value="true"/>
- <property name="locations">
- <list>
- <value>classpath:jdbc.properties</value>
- <!--
- <value>classpath:mail.properties</value>
- -->
- <value>classpath:hibernate.properties</value>
- </list>
- </property>
- </bean>
- <!-- JNDI DataSource for J2EE environments -->
- <!--<jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/mobserver"/>-->
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
- <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
- <property name="url" value="jdbc:mysql://rm-wz949306t03an8m8s4o.mysql.rds.aliyuncs.com/super_service_uat?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&autoReconnect=true"/>
- <property name="username" value="uat_superservice"/>
- <property name="password" value="Sservice#!0913"/>
- <property name="maxActive" value="50"/>
- <property name="maxWait" value="20"/>
- <property name="poolPreparedStatements" value="true"/>
- <property name="defaultAutoCommit" value="true"/>
- <property name="validationQuery" value="SELECT 1+1"/>
- <property name="testOnBorrow" value="true"/>
- </bean>
- </beans>
|