From baf0a9fdfd5e699ce5950914121f093282a3e4ed Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Thu, 28 Oct 2021 10:19:09 +0100 Subject: Add Spring Jpa configuration Issue-ID: POLICY-3795 Change-Id: Ic0955f412bfcd94094c19aceb4f25be8e695099a Signed-off-by: FrancescoFioraEst --- runtime-controlloop/src/main/resources/application.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'runtime-controlloop/src/main/resources/application.yaml') diff --git a/runtime-controlloop/src/main/resources/application.yaml b/runtime-controlloop/src/main/resources/application.yaml index 50c063fb3..c4fc77b4d 100644 --- a/runtime-controlloop/src/main/resources/application.yaml +++ b/runtime-controlloop/src/main/resources/application.yaml @@ -6,6 +6,16 @@ spring: http: converters: preferred-json-mapper: gson + datasource: + url: jdbc:mariadb://${mariadb.host:localhost}:${mariadb.port:3306}/controlloop + driverClassName: org.mariadb.jdbc.Driver + username: policy + password: P01icY + hikari: + connectionTimeout: 30000 + idleTimeout: 600000 + maxLifetime: 1800000 + maximumPoolSize: 10 security: enable-csrf: false @@ -28,6 +38,7 @@ runtime: updateParameters: maxRetryCount: 4 maxWaitMs: 20000 + databasePlatform: org.eclipse.persistence.platform.database.MySQLPlatform databaseProviderParameters: name: PolicyProviderParameterGroup implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl -- cgit 1.2.3-korg