I have spring boot application using MySQL database. I am using hikari connection pool.
According to this official blog of Hikari https://github.com/brettwooldridge/HikariCP/wiki/MySQL-Configuration, I have to set some properties for performance improvement e.g.
dataSource.prepStmtCacheSize=250
dataSource.prepStmtCacheSqlLimit=2048
dataSource.useServerPrepStmts=true
dataSource.useLocalSessionState=true
But I am not sure how to set these properties without explicitly creating bean of HikariDataSource as mentioned in this link: https://github.com/brettwooldridge/HikariCP/issues/1200
I am aspiring to set these properties directly via spring configuration file (property file or YML file)