JdbcTemplateMay 12, 2025 · 2 min readDeon SlabbertPlease note, the content of this post has been copied and modified from the Spring website. SELECT public int test() { var sql = "select count(*) from product"; return this.jdbcTemplate.queryForObject(sql, Integer.class);}