From b4b9673a64b2af88df486dbdf5c713ca128b8c03 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Thu, 18 Jul 2024 16:58:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E5=A2=9E):=20:rocket:=20Maven?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 27 +++++++++++++++++++ .../src/main/resources/application-prod.yml | 19 +++++++++++++ service/src/main/resources/application.yml | 2 +- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 service/src/main/resources/application-prod.yml diff --git a/pom.xml b/pom.xml index e897960..1937036 100644 --- a/pom.xml +++ b/pom.xml @@ -144,4 +144,31 @@ + + + + + dev + + dev + + + true + + + + + test + + test + + + + + prod + + prod + + + diff --git a/service/src/main/resources/application-prod.yml b/service/src/main/resources/application-prod.yml new file mode 100644 index 0000000..de30295 --- /dev/null +++ b/service/src/main/resources/application-prod.yml @@ -0,0 +1,19 @@ +bunny: + datasource: + host: 192.168.1.4 + port: 3306 + sqlData: bunny_docs + username: root + password: "02120212" + + redis: + host: 192.168.1.4 + port: 6379 + database: 3 + password: "123456" + + minio: + endpointUrl: "http://192.168.1.4:9000" + bucket-name: test + accessKey: bunny + secretKey: "02120212" \ No newline at end of file diff --git a/service/src/main/resources/application.yml b/service/src/main/resources/application.yml index fb30ebc..60bc9fa 100644 --- a/service/src/main/resources/application.yml +++ b/service/src/main/resources/application.yml @@ -3,7 +3,7 @@ server: spring: profiles: - active: dev + active: @profiles.active@ application: name: bunny-service