From ac36cb1d9686aca92baef761d96357e7b0d0d08b Mon Sep 17 00:00:00 2001 From: CRoberto1926 <3205022+CRoberto1926@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:06:06 +0100 Subject: [PATCH] Use postgres, activate all maven plugin profiles --- rest/kadai-rest-spring-example-boot/pom.xml | 6 ++++++ .../src/main/resources/application.properties | 17 ++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/rest/kadai-rest-spring-example-boot/pom.xml b/rest/kadai-rest-spring-example-boot/pom.xml index 90e3d52dc..c468f2be6 100644 --- a/rest/kadai-rest-spring-example-boot/pom.xml +++ b/rest/kadai-rest-spring-example-boot/pom.xml @@ -55,6 +55,9 @@ history.plugin + + true + io.kadai.history @@ -109,6 +112,9 @@ dmn-routing.plugin + + true + io.kadai diff --git a/rest/kadai-rest-spring-example-boot/src/main/resources/application.properties b/rest/kadai-rest-spring-example-boot/src/main/resources/application.properties index 83279def7..8c9d03c40 100644 --- a/rest/kadai-rest-spring-example-boot/src/main/resources/application.properties +++ b/rest/kadai-rest-spring-example-boot/src/main/resources/application.properties @@ -4,11 +4,11 @@ server.servlet.context-path=/kadai kadai.routing.dmn.upload.path=/tmp/routing.dmn ######## Kadai DB ####### ######## h2 configuration ######## -spring.datasource.url=jdbc:h2:mem:kadai;NON_KEYWORDS=KEY,VALUE;IGNORECASE=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=0 -spring.datasource.driverClassName=org.h2.Driver -spring.datasource.username=sa +#spring.datasource.url=jdbc:h2:mem:kadai;NON_KEYWORDS=KEY,VALUE;IGNORECASE=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=0 +#spring.datasource.driverClassName=org.h2.Driver +#spring.datasource.username=sa +#spring.datasource.password=sa springdoc.api-docs.path=/api-docs -spring.datasource.password=sa kadai.schemaName=KADAI ######## h2 console configuration ######## ########spring.h2.console.enabled=true @@ -19,11 +19,10 @@ kadai.schemaName=KADAI ########spring.datasource.username=db2inst1 ########spring.datasource.password=db2inst1-pwd ######## Postgres configuration ######## -########spring.datasource.url=jdbc:postgresql://localhost:5102/kadai -########spring.datasource.driverClassName=org.postgresql.Driver -########spring.datasource.username=postgres -########spring.datasource.password=1234 - +spring.datasource.url=jdbc:postgresql://localhost:5102/postgres +spring.datasource.driverClassName=org.postgresql.Driver +spring.datasource.username=postgres +spring.datasource.password=postgres ########spring.jpa.generate-ddl=true ########spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true ####### property that control rest api security deploy use true for no security.