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_dev?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&autoReconnect=true"/>
- <property name="username" value="superdev"/>
- <property name="password" value="super_Service1221@!"/>
- <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>
|