The method queryForObject(String, Object[], Class) from the type JdbcTemplate is deprecatedJava(67108967)
Go to Super Implementation
Integer org.springframework.jdbc.core.JdbcTemplate.queryForObject(String sql, @Nullable Object[] args, Class requiredType) throws DataAccessException
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, expecting a result object.
The query is expected to be a single row/single column query; the returned result will be directly mapped to the corresponding object type.
Specified by: queryForObject(...) in JdbcOperations
为了维护代码的可持续性和兼容性,处于稳定性原因,Spring 框架可能会对某些方法进行弃用,然后提供改进的方法。在这种情况下,JdbcTemplate 的 queryForObject(String, Object[], Class) 方法被标识为弃用。..