How to replace default hikari cp to tomcat pool on spring boot 2.0

后端 未结 3 1531
时光取名叫无心
时光取名叫无心 2021-02-07 20:47

I have migrated spring boot application to 2.0 and found out some problems with hikari connection pool. When I am fetching database data this results to hikari cp timeout ie. co

3条回答
  •  独厮守ぢ
    2021-02-07 21:16

    Also:

    spring:
        datasource:
            type: org.apache.tomcat.jdbc.pool.DataSource
    

    works with

    
        org.apache.tomcat
        tomcat-jdbc
    
    

提交回复
热议问题