How To Customize Tomcat Settings Via Properties And DataSourceBuilder
Note: The best way to tune the connection pool parameters consist in using Flexy Pool by Vlad Mihalcea. Via Flexy Pool you can find the optim settings that sustain high-performance of your connection pool.
Description: This is a kickoff application that set up Tomcat via DataSourceBuilder. The jdbcUrl is set up for a MySQL database. For testing purposes, the application uses an ExecutorService for simulating concurrent users.
Key points:
- in
pom.xmladd the Tomcat dependency - in
application.properties, configure Tomcat via a custom prefix, e.g.,app.datasource.* - write a
@Beanthat returns theDataSource


