Skip to content

Commit

Permalink
version 0.3.2 update
Browse files Browse the repository at this point in the history
新增备选的dbcp连接池配置
  • Loading branch information
ZongXR committed Oct 1, 2020
1 parent 5645023 commit 3531202
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/artifacts/SuperMarket_war.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@
</td>
<td>2020年9月29日</td>
</tr>
<tr>
<td>0.3.2</td>
<td>
<ul>
<li>新增备选的DBCP连接池配置</li>
</ul>
</td>
<td>2020年10月1日</td>
</tr>
</table>
<h2>配置情况</h2>
<ul>
Expand Down
7 changes: 7 additions & 0 deletions src/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
<property name="user" value="root"/>
<property name="password" value="root"/>
</bean>
<!-- 配置备选的dbcp连接池 -->
<bean id="dataSource_dbcp" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/supermarket" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
<!-- 整合mybatis -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
Expand Down
7 changes: 7 additions & 0 deletions web/WEB-INF/classes/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
<property name="user" value="root"/>
<property name="password" value="root"/>
</bean>
<!-- 配置备选的dbcp连接池 -->
<bean id="dataSource_dbcp" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/supermarket" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>
<!-- 整合mybatis -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
Expand Down
Binary file added web/WEB-INF/lib/commons-pool-1.5.6.jar
Binary file not shown.

0 comments on commit 3531202

Please sign in to comment.