From e4ddfd75c159ed6f81b62cdb6101dda2292a95d9 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Tue, 11 Oct 2016 20:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8A=A8=E6=80=81=E8=B5=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/cms-web/pom.xml | 37 +++++++++++++++++++ .../src/main/resources/config.properties | 1 + .../main/resources/profiles/dev.properties | 1 + .../main/resources/profiles/prod.properties | 1 + .../main/resources/profiles/test.properties | 1 + 5 files changed, 41 insertions(+) create mode 100644 cms/cms-web/src/main/resources/config.properties create mode 100644 cms/cms-web/src/main/resources/profiles/dev.properties create mode 100644 cms/cms-web/src/main/resources/profiles/prod.properties create mode 100644 cms/cms-web/src/main/resources/profiles/test.properties diff --git a/cms/cms-web/pom.xml b/cms/cms-web/pom.xml index 4038d900..691c046d 100644 --- a/cms/cms-web/pom.xml +++ b/cms/cms-web/pom.xml @@ -40,7 +40,44 @@ jar + + + + dev + + dev + + + true + + + + test + + test + + + + prod + + prod + + + + cms-web + + src/main/resources/profiles/${env}.properties + + + + src/main/resources + + src/main/resources/profiles/* + + true + + diff --git a/cms/cms-web/src/main/resources/config.properties b/cms/cms-web/src/main/resources/config.properties new file mode 100644 index 00000000..ac1847b2 --- /dev/null +++ b/cms/cms-web/src/main/resources/config.properties @@ -0,0 +1 @@ +env=${profile.env} \ No newline at end of file diff --git a/cms/cms-web/src/main/resources/profiles/dev.properties b/cms/cms-web/src/main/resources/profiles/dev.properties new file mode 100644 index 00000000..baede636 --- /dev/null +++ b/cms/cms-web/src/main/resources/profiles/dev.properties @@ -0,0 +1 @@ +profile.env=dev \ No newline at end of file diff --git a/cms/cms-web/src/main/resources/profiles/prod.properties b/cms/cms-web/src/main/resources/profiles/prod.properties new file mode 100644 index 00000000..bb7a8fdf --- /dev/null +++ b/cms/cms-web/src/main/resources/profiles/prod.properties @@ -0,0 +1 @@ +profile.env=prod \ No newline at end of file diff --git a/cms/cms-web/src/main/resources/profiles/test.properties b/cms/cms-web/src/main/resources/profiles/test.properties new file mode 100644 index 00000000..4ff006f4 --- /dev/null +++ b/cms/cms-web/src/main/resources/profiles/test.properties @@ -0,0 +1 @@ +profile.env=test \ No newline at end of file