springboot项目,使用JdbcTemplate,并希望显示执行的sql,配置如下spring.jpa.properties.hibernate.format_sql=true
但是没有任何输出,上面的配置似乎只支持spring data jpa,所以我想知道是否存在某种方式可以显示直接使用JdbcTemplate的<em
jdbcTemplate.update("delete from `message` where `id` IN (:ids) and `from` = ?;", new Integer[] {1, 2}, 1); -添加 public static final Map<String, String> SQL = new HashMap<String, StringMapSqlParameterSource().addValue("ids", Arrays.asList(ids)).addValue(