Refactoring for bpmn-infra 83/122383/1
authorMD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>
Thu, 1 Jul 2021 05:02:58 +0000 (10:32 +0530)
committerMD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>
Thu, 1 Jul 2021 05:02:58 +0000 (10:32 +0530)
Issue-ID: SO-3674

Signed-off-by: MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com>
Change-Id: Icac20cf1f00ac016a26a8ab1677da21f2d33e84a

bpmn/mso-infrastructure-bpmn/src/main/java/org/onap/so/bpmn/infrastructure/CamundaConfig.java
bpmn/mso-infrastructure-bpmn/src/main/resources/application.yaml

index 16566e7..6358524 100644 (file)
@@ -7,11 +7,9 @@ import org.camunda.bpm.engine.RepositoryService;
 import org.camunda.bpm.engine.RuntimeService;
 import org.camunda.bpm.engine.spring.application.SpringServletProcessApplication;
 import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
 import org.springframework.context.annotation.Configuration;
 
 @Configuration
-@ComponentScan
 public class CamundaConfig {
 
     @Bean
index 0f1499f..f94471d 100644 (file)
@@ -326,8 +326,8 @@ spring:
   datasource:
     hikari:
       jdbcUrl: jdbc:mariadb://${DB_HOST}:3306/camundabpmn
-      username: root
-      password: password
+      username: ${DB_ADMIN_USERNAME}
+      password: ${DB_ADMIN_PASSWORD}
       driver-class-name: org.mariadb.jdbc.Driver
       pool-name: bpmn-pool
       registerMbeans: true