java 实现proxool oracle数据库连接池的使用
本文针对已有项目(Spring+SpringMVC)框架,实现连接池的使用:
步骤
1:由于是Maven项目,在pom.xml中添加proxool依赖的jar包,如下:
<!-- https://mvnrepository.com/artifact/com.cloudhopper.proxool/proxool -->
<dependency>
<groupId>com.cloudhopper.proxool</groupId>
<artifactId>proxool</artifactId>
<version>0.9.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.cloudhopper.proxool/proxool-cglib -->
<dependency>
<groupId>com.cloudhopper.proxool</groupId>
<artifactId>proxool-cglib</artifactId>
<version>0.9.1</version>
</dependency>
2:在web.xml中配置proxool,如下:
<servlet>
<servlet-name>ServletConfigurator</servlet-name>
<servlet-class>
org.logicalcobwebs.proxool.configuration.ServletConfigurator</