JdbcClient
sql
method returns a StatementSpec
which gives several options to set positional and named parameters values.
Multiple positional parameters can be bound wiith a List
of values, however a varargs (like with JdbcTemplate
) would be more fluent.
It would be possible to write:
jdbcClient.sql("...").params("val 1", "val 2")
instead of
jdbcClient.sql("...").params(List.of("val 1", "val 2"))
Comment From: sbrannen
I've already addressed this for inclusion in 6.1 RC1.
- duplicate of #31070
Please search for existing issues before creating a new issue.
Thanks