This commit is contained in:
1 parent
599052a235
commit
a24810a53a
2 files changed
+52
-31
No files matched your search
+3
-8
@@ -75,18 +75,13 @@ public class EightTrackDataSource {
|
||||
@Bean
|
||||
public DataSource dataSource() throws Exception {
|
||||
logger.debug("Getting datasource");
|
||||
return getDataSource(confService.getDatabaseUsername(),
|
||||
confService.getDatabasePassword(),
|
||||
"/eighttrack");
|
||||
return getDataSource(confService.getDatabaseUsername(), confService.getDatabasePassword(), "/eighttrack");
|
||||
}
|
||||
|
||||
@Bean
|
||||
public DataSource flywayDataSource() throws Exception {
|
||||
logger.debug("Logging in with flyway for migrations");
|
||||
|
||||
return getDataSource(confService.getDatabaseRootUsername(),
|
||||
confService.getDatabaseRootPassword(),
|
||||
"");
|
||||
logger.debug("Logging in with flyway for migrations");;
|
||||
return getDataSource(confService.getDatabaseRootUsername(), confService.getDatabaseRootPassword(), "");
|
||||
}
|
||||
|
||||
private DataSource getDataSource(String user, String passwd, String db) throws Exception {
|
||||
|
||||
Reference in new issue
Block a user