From 0ba2b328aace4cb755d96cc2c4c0399ab2d22302 Mon Sep 17 00:00:00 2001 From: TestAccountsUser Date: Sun, 18 Mar 2018 23:56:34 +0100 Subject: [PATCH] Externalisation de configuration --- config-server-repo/config-server-repo.iml | 9 +++++++++ .../microservice-clientui.properties | 0 .../microservice-commandes.properties | 1 - .../microservice-paiement.properties | 2 -- .../microservice-produits.properties | 16 ++++++++++++++++ 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 config-server-repo/config-server-repo.iml rename clientui/src/main/resources/application.properties => config-server-repo/microservice-clientui.properties (100%) rename microservice-commandes/src/main/resources/application.properties => config-server-repo/microservice-commandes.properties (58%) rename microservice-paiement/src/main/resources/application.properties => config-server-repo/microservice-paiement.properties (58%) create mode 100644 config-server-repo/microservice-produits.properties diff --git a/config-server-repo/config-server-repo.iml b/config-server-repo/config-server-repo.iml new file mode 100644 index 0000000..8021953 --- /dev/null +++ b/config-server-repo/config-server-repo.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/clientui/src/main/resources/application.properties b/config-server-repo/microservice-clientui.properties similarity index 100% rename from clientui/src/main/resources/application.properties rename to config-server-repo/microservice-clientui.properties diff --git a/microservice-commandes/src/main/resources/application.properties b/config-server-repo/microservice-commandes.properties similarity index 58% rename from microservice-commandes/src/main/resources/application.properties rename to config-server-repo/microservice-commandes.properties index 76d2a9f..3d785cf 100644 --- a/microservice-commandes/src/main/resources/application.properties +++ b/config-server-repo/microservice-commandes.properties @@ -1,4 +1,3 @@ -spring.application.name=microservice-commandes server.port 9002 diff --git a/microservice-paiement/src/main/resources/application.properties b/config-server-repo/microservice-paiement.properties similarity index 58% rename from microservice-paiement/src/main/resources/application.properties rename to config-server-repo/microservice-paiement.properties index fae79e5..bda12af 100644 --- a/microservice-paiement/src/main/resources/application.properties +++ b/config-server-repo/microservice-paiement.properties @@ -1,5 +1,3 @@ -spring.application.name=microservice-paiement - server.port 9003 #Configurations H2 diff --git a/config-server-repo/microservice-produits.properties b/config-server-repo/microservice-produits.properties new file mode 100644 index 0000000..3751460 --- /dev/null +++ b/config-server-repo/microservice-produits.properties @@ -0,0 +1,16 @@ + + +server.port 9001 + +#Configurations H2 +spring.jpa.show-sql=true +spring.h2.console.enabled=true + +#défini l'encodage pour data.sql +spring.datasource.sql-script-encoding=UTF-8 + +management.endpoints.web.expose=info, health, refresh + +#Nos configurations + +mes-configs.limitDeProduits= 3