ssh 配置记录
<?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:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd" default-autowire="byName">
<context:annotation-config/>
<context:component-scan base-package="com" name-generator="com.framework.util.DefaultBeanNameGenerator"/>
<!-- <aop:aspectj-autoproxy />-->
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
<property name="locations">
<list>
<value>classpath:resources/application.properties</value>
</list>
</property>
</bean>
<bean id="dataSource"
destroy-method="close">
<property name="driverClass" value="${jdbc.driverClassName}" />
<property name="jdbcUrl" value="${jdbc.web.url}" />
<property name="user" value="${jdbc.web.username}" />
<property name="password" value="${jdbc.web.password}" />
<property name="maxPoolSize" value="300" />
<property name="minPoolSize" value="30" />
<property name="maxIdleTime" value="60" />
<property name="maxStatements" value="6000" />
<property name="idleConnectionTestPeriod" value="1800" />
<property name="acquireIncrement" value="2" />
<property name="preferredTestQuery" value="select 1 from dual" />
<property name="numHelperThreads" value="10"/>
<property name="timeBetweenEvictionRunsMillis" value="3600000" />
<property name="minEvictableIdleTimeMillis" value="3600000" />
</bean>
<!-- <bean id="sessionFactory" />
</property>
<property name="cacheQueries">
<value>true</value>
</property>
</bean>
<bean id="transactionManager" ref="sessionFactory"/>
</bean>
</beans>