I have been browsing SO for some time, and chewing my hat in the process, but cannot find an exact match to my problem. For short, I am getting superb stack trace (org.a
Had a similar problem ie., tomcat was closing JDBC connection due to it becoming abandoned because a transaction was taking a long time.
Resolved it by realizing that abandoned and idle are different and by setting: spring.datasource.tomcat.removeAbandonedTimeout: 86400 #seconds
abandoned
idle
spring.datasource.tomcat.removeAbandonedTimeout: 86400 #seconds