From: guochuyicmri Date: Wed, 3 Apr 2019 02:26:36 +0000 (+0800) Subject: Upgrade UUI Database to PostgresSQL X-Git-Tag: 2.0.0~32 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=410ac3697df08e8c932edbba7bb5fa2036fb9c2c;p=usecase-ui%2Fserver.git Upgrade UUI Database to PostgresSQL Change-Id: I9fcfe72edb8b40efee7c30a72b53812ba0ac656a Issue-ID: USECASEUI-236 Signed-off-by: guochuyicmri --- diff --git a/server/pom.xml b/server/pom.xml index 5ef9f200..d0d10aaf 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -71,6 +71,22 @@ org.springframework.boot spring-boot-starter-data-rest + + org.elasticsearch.client + elasticsearch-rest-high-level-client + 6.6.0 + + + org.elasticsearch + elasticsearch + + + + + org.elasticsearch + elasticsearch + 6.6.0 + org.springframework.data spring-data-rest-hal-browser @@ -83,11 +99,18 @@ org.springframework.boot spring-boot-starter-web - - org.mariadb.jdbc - mariadb-java-client - 2.2.2 - + + + postgresql + postgresql + 9.1-901-1.jdbc4 + + + + org.postgresql + postgresql + runtime + org.projectlombok lombok @@ -326,4 +349,4 @@ - + \ No newline at end of file diff --git a/server/src/main/resources/application.properties b/server/src/main/resources/application.properties index 7402b510..48fb0e7b 100644 --- a/server/src/main/resources/application.properties +++ b/server/src/main/resources/application.properties @@ -14,17 +14,17 @@ ## limitations under the License. ## ## General App Properties -server.contextPath=/api/usecaseui/server/v1 +server.contextPath=/api/usecaseui-server/v1 server.port=8082 spring.http.multipart.max-file-size=128MB spring.http.multipart.max-request-size=128MB ## App DB Properties -spring.datasource.url=jdbc:mysql://localhost:3306/uui -spring.datasource.username=root -spring.datasource.password=root -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect -spring.database.driver.classname=org.mariadb.jdbc.Driver +spring.datasource.url=jdbc:postgresql://localhost:5432/uui +spring.datasource.username=uui +spring.datasource.password=uui +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +spring.database.driver.classname=org.postgresql.Driver spring.jpa.show-sql=false spring.jpa.properties.hibernate.format_sql=false