Spring配置
1、配置DataSource数据源代理对象
<bean id="dataSource" class="org.apache.ibatis.datasource.pooled.PooledDataSource">
<property name="driver" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/skeyeoa" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
2、配置SqlSessionFactory代理对象
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
//注入数据源dataSour