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