Connection hangs after time of inactivity

前端 未结 5 1016
耶瑟儿~
耶瑟儿~ 2020-12-31 18:21

In my application, Spring manages connection pool for database access. Hibernate uses these connections for its queries. At first glance, I have no problems with the pool: i

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 18:57

    you have to add some parameters in your DataSource:

    more important add testOnBorrow and validationQuery

提交回复
热议问题