Update README.md

pull/192/head
Brett Wooldridge 10 years ago
parent a2fd513f74
commit d9f32632b9

@ -265,6 +265,10 @@ HikariConfig config = new HikariConfig();
config.setJdbcUrl("jdbc:mysql://localhost:3306/simpsons"); config.setJdbcUrl("jdbc:mysql://localhost:3306/simpsons");
config.setUsername("bart"); config.setUsername("bart");
config.setPassword("51mp50n"); config.setPassword("51mp50n");
config.addDataSourceProperty("cachePrepStmts", "true");
config.addDataSourceProperty("prepStmtCacheSize", "250");
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
config.addDataSourceProperty("useServerPrepStmts", "true");
HikariDataSource ds = new HikariDataSource(config); HikariDataSource ds = new HikariDataSource(config);
``` ```

Loading…
Cancel
Save