spring-framework / org.springframework.jdbc.datasource / AbstractDriverBasedDataSource / getConnection

getConnection

open fun getConnection(): Connection

This implementation delegates to getConnectionFromDriver, using the default username and password of this DataSource.

See Also
#getConnectionFromDriver(String, String)#setUsername#setPassword

open fun getConnection(username: String, password: String): Connection

This implementation delegates to getConnectionFromDriver, using the given username and password.

See Also
#getConnectionFromDriver(String, String)