How to set up datasource with Spring for HikariCP?

后端 未结 9 876
傲寒
傲寒 2020-11-27 02:51

Hi I\'m trying to use HikariCP with Spring for connection pool. I\'m using jdbcTempLate and JdbcdaoSupport.
This is my spring configuration file for datasource:

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 03:21

    This last error is caused by the library SLF4J not being found. HikariCP has two dependencies: slf4j and javassist. BTW, HikariDataSource does have a default constructor and does not need HikariConfig, see this link. So that was never the problem.

提交回复
热议问题