Add support for auto-configuration of Commons DBCP2

Closes gh-1292
Closes gh-1477
This commit is contained in:
David Liu
2014-09-01 16:09:46 +08:00
committed by Andy Wilkinson
parent 8ed461947f
commit 8e9e502b6a
5 changed files with 65 additions and 23 deletions

View File

@@ -1249,7 +1249,9 @@ Production database connections can also be auto-configured using a pooling
* We prefer the Tomcat pooling `DataSource` for its performance and concurrency, so if
that is available we always choose it.
* If commons-dbcp is available we will use that, but we don't recommend it in production.
* If HikariCP is available we will use it
* If Commons DBCP is available we will use it, but we don't recommend it in production.
* Lastly, if Commons DBCP2 is available we will use it
If you use the `spring-boot-starter-jdbc` or `spring-boot-starter-data-jpa`
``starter POMs'' you will automcatically get a dependency to `tomcat-jdbc`.