Spring DAO - first query with JdbcTemplate takes much longer time

前端 未结 3 814
天命终不由人
天命终不由人 2021-01-20 18:32

In my application I use Spring MVC with DAO pattern to access MSSql database with JdbcTemplate. Everything is working fine but I have noticed that first query takes a bit lo

3条回答
  •  终归单人心
    2021-01-20 19:20

    Have a look at the javadoc and source. getExceptionTranslator() probably involves some work to set up. Maybe you can control when that work happens with the lazy-init parameter.

提交回复
热议问题