removing Connection type parameter in getHostName method as jdbcTemplate is used