|
|
@ -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);
|
|
|
|
```
|
|
|
|
```
|
|
|
|