<?xml version="1.0" encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"default-lazy-init="false"><description>Spring公共配置 </description><!-- scan for mappers and let them be autowired --><beanclass="org.mybatis.spring.mapper.MapperScannerConfigurer"><propertyname="basePackage"value="com.dap.hmsg.mapper" /></bean><!-- define the SqlSessionFactory --><beanid="sqlSessionFactory"class="org.mybatis.spring.SqlSessionFactoryBean"><propertyname="dataSource"ref="dataSource" /><propertyname="mapperLocations"value="classpath:/mapper/*Mapper.xml" /><propertyname="configLocation"value="classpath:/mapper/mapperConfiguration.xml" /></bean></beans>
#C3P0 Connection Pool
c3p0.minPoolSize=3
c3p0.maxPoolSize=30
c3p0.maxIdleTime=30
c3p0.idleConnectionTestPeriod=30
c3p0.checkoutTimeout=10000#mysql
jdbc.driverClassName=com.mysql.jdbc.Driver