From 75a784ba6ed8f6e70ee91808d3752443e3a04d1d Mon Sep 17 00:00:00 2001 From: esensar Date: Sun, 16 Apr 2017 17:47:21 +0200 Subject: [PATCH] Add default db base url --- application.properties | 1 + events.properties | 2 +- teams.properties | 2 +- users.properties | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application.properties b/application.properties index 1dd7a67..4aff3d8 100644 --- a/application.properties +++ b/application.properties @@ -6,6 +6,7 @@ events.name=events teams.name=teams # DB Properties +defaultDbBaseUrl = jdbc:mysql://localhost:3306 spring.datasource.username = root spring.datasource.password = root spring.jpa.generate-ddl=true \ No newline at end of file diff --git a/events.properties b/events.properties index 99bc695..66622d1 100644 --- a/events.properties +++ b/events.properties @@ -1,3 +1,3 @@ spring.application.name=events server.port=9020 -spring.datasource.url = jdbc:mysql://localhost:3306/events +spring.datasource.url = ${defaultDbBaseUrl}/events diff --git a/teams.properties b/teams.properties index a73137b..0f96478 100644 --- a/teams.properties +++ b/teams.properties @@ -1,3 +1,3 @@ spring.application.name=teams server.port=9010 -spring.datasource.url = jdbc:mysql://localhost:3306/teams +spring.datasource.url = ${defaultDbBaseUrl}/teams diff --git a/users.properties b/users.properties index 7bedb06..5a997a8 100644 --- a/users.properties +++ b/users.properties @@ -1,3 +1,3 @@ spring.application.name=users server.port=8090 -spring.datasource.url = jdbc:mysql://localhost:3306/users +spring.datasource.url = ${defaultDbBaseUrl}/users