There is no need to create a separate bean for "databaseConnection", just use the value in url property