Database connection management in Spring

后端 未结 5 1925
栀梦
栀梦 2021-01-21 09:25

Do we have to explicitly manage database resources when using Spring Framework.. liking closing all open connections etc?

I have read that Spring relieves developer from

5条回答
  •  无人及你
    2021-01-21 10:22

    It could be due to connections not being closed. How are you accessing your connections within spring? Are you are using JdbcTemplate to query the database? Or just getting the connection from spring?

提交回复
热议问题