裴东辉-Spring集成HikariCP(另外一款高性能的 JDBC 连接池) - 裴东辉

HikariCP简介( http://brettwooldridge.github.io/HikariCP/):

It’s Faster.

There is nothing  faster. There is nothing more  correct. HikariCP is a “zero-overhead” production-quality connection pool.

Using a stub-JDBC implementation to isolate and measure the overhead of HikariCP, comparative benchmarks were performed on a commodity PC. The next fastest connection pool was BoneCP.

Maven Repository

<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>1.3.8</version>
<scope>compile</scope>
</dependency>

Initialization and Configuration

See the  main project page for initialization examples.

You can find information about the  configuration properties here.

Support

Google discussion group  HikariCP here.

Requirements

  • Java 6 and above
  • Javassist 3.18.1+ library
  • slf4j library

一、项目整体布局(为了区分HikariCP依赖的jar包,jar包都以Hikari-1.3.8-为前缀)。

裴东辉-Spring集成HikariCP(另外一款高性能的 JDBC 连接池) - 裴东辉_第1张图片

 

二、测试的类,HikariCPSpring.java

裴东辉-Spring集成HikariCP(另外一款高性能的 JDBC 连接池) - 裴东辉_第2张图片

 

三、日志打印文件,log4j.properties

裴东辉-Spring集成HikariCP(另外一款高性能的 JDBC 连接池) - 裴东辉_第3张图片

 

 

四、Springle的配置文件

裴东辉-Spring集成HikariCP(另外一款高性能的 JDBC 连接池) - 裴东辉_第4张图片

 

 

 

 


本文链接: 裴东辉-Spring集成HikariCP(另外一款高性能的 JDBC 连接池),转载请注明。

你可能感兴趣的:(spring,性能,hikaricp)