How to reuse the same connection with a Spring's JdbcTemplate?

后端 未结 6 689
轮回少年
轮回少年 2020-12-13 07:02

I have the following code:


    @Test
    public void springTest() throws SQLException{
        //Connect to the DB.
        DriverManagerDataSource dataSou         


        
6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 07:24

    I know this is situational (depending on which feature set you want to use), but you could simply use the JdbcTemplate.batchUpdate methods.

提交回复
热议问题