summaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/resources/application.yaml
diff options
context:
space:
mode:
authorKeguang He <hekeguang@chinamobile.com>2022-07-26 01:17:21 +0000
committerGerrit Code Review <gerrit@onap.org>2022-07-26 01:17:21 +0000
commit0c41af52f3f453219a0240cf54ea321829a49c0e (patch)
tree682c84b423f65e9c5b7476a30f504e8a757cace2 /intentanalysis/src/main/resources/application.yaml
parent7753765f0712e846ff87a8b2dd6b9586b2e02f47 (diff)
parentc556b574b03a0458e1f8121351c80286ac02bb63 (diff)
Merge "Intent service impletation"
Diffstat (limited to 'intentanalysis/src/main/resources/application.yaml')
-rw-r--r--intentanalysis/src/main/resources/application.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/intentanalysis/src/main/resources/application.yaml b/intentanalysis/src/main/resources/application.yaml
index 644d527..22f59a5 100644
--- a/intentanalysis/src/main/resources/application.yaml
+++ b/intentanalysis/src/main/resources/application.yaml
@@ -2,3 +2,15 @@ server:
port: 8083
servlet:
context-path: /api/usecaseui-intent-analysis/v1
+spring:
+ datasource:
+ url: jdbc:postgresql://${POSTGRES_IP:127.0.0.1}:${POSTGRES_PORT:5432}/${POSTGRES_DB_NAME:intentdb}
+ username: ${POSTGRES_USERNAME}
+ password: ${POSTGRES_PASSWORD}
+ driver-class-name: org.postgresql.Driver
+ schema: classpath:intent-analysis-init.sql
+ initialization-mode: always
+mybatis:
+ configuration:
+ database-id: PostgreSQL
+ mapper-locations: classpath*:mybatis/sql/*.xml \ No newline at end of file