Skip to content
Advertisement

Spring Transient Data Access Resource Exception in jdbcTemplate update

I have a method to detect duplicate entry for a column:

(I inject to jdbcTemplate correctly)

But i got this exception in runtime:

Advertisement

Answer

We can use the queryForList() method of jdbcTemplate like this:

Where results is a List<String>.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement