Skip to content

Commit cbadbac

Browse files
Configure DBCP2 via properties and DataSourceBuilder
1 parent 01a97db commit cbadbac

File tree

1 file changed

+5
-5
lines changed
  • HibernateSpringBootDataSourceBuilderDBCP2Kickoff

1 file changed

+5
-5
lines changed

HibernateSpringBootDataSourceBuilderDBCP2Kickoff/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
**Note:** The best way to tune the connection pool parameters consist in using [Flexy Pool](https://github.com/vladmihalcea/flexy-pool) by Vlad Mihalcea. Via [Flexy Pool](https://github.com/vladmihalcea/flexy-pool) you can find the optim settings that sustain high-performance of your connection pool.
44

5-
**Description:** This is a kickoff application that set up DBCP2 via `DataSourceBuilder`. The `jdbcUrl` is set up for a MySQL database. For testing purpose the application uses an `ExecutorService` for simulating concurrent users.
5+
**Description:** This is a kickoff application that set up DBCP2 via `DataSourceBuilder`. The `jdbcUrl` is set up for a MySQL database. For testing purposes, the application uses an `ExecutorService` for simulating concurrent users.
66

7-
**Key points:**\
8-
- in `pom.xml` add the DBCP2 dependency\
9-
- in `application.properties`, configure DBCP2 via a custom prefix, e.g., `app.datasource.*`\
10-
- write a `@Bean` that returns the `DataSource`
7+
**Key points:**
8+
- in `pom.xml` add the DBCP2 dependency
9+
- in `application.properties`, configure DBCP2 via a custom prefix, e.g., `app.datasource.*`
10+
- write a `@Bean` that returns the `DataSource`
1111

1212
------------------------------
1313

0 commit comments

Comments
 (0)