Created
February 25, 2024 13:33
-
-
Save maciejwalkowiak/9d7a42a8eb630bf7449acf10a83a9615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
SimpleDriverDataSource simpleDriverDataSource(JdbcConnectionDetails properties) { | |
SimpleDriverDataSource simpleDriverDataSource = new SimpleDriverDataSource(); | |
simpleDriverDataSource.setUrl(properties.getJdbcUrl()); | |
simpleDriverDataSource.setDriver(new org.postgresql.Driver()); | |
simpleDriverDataSource.setUsername(properties.getUsername()); | |
simpleDriverDataSource.setPassword(properties.getPassword()); | |
return simpleDriverDataSource; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment