Spring is losing connection to the DB and does not recover or reconnect

后端 未结 4 1261
予麋鹿
予麋鹿 2020-12-13 10:15

I have a spring-boot application on the same host as the Maria DB and both are running fine for some time. But between 12 hours and 2 days it seems that the spring boot appl

4条回答
  •  天命终不由人
    2020-12-13 10:50

    Spring (3) boot settings for hibernate and oracle:

    spring.datasource.test-on-borrow=true

    spring.datasource.validation-query=select 1 from dual


提交回复
热议问题