Upgrade UUI Database to PostgresSQL 26/84026/1
authorguochuyicmri <guochuyi@chinamobile.com>
Wed, 3 Apr 2019 02:26:36 +0000 (10:26 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Wed, 3 Apr 2019 02:26:43 +0000 (10:26 +0800)
Change-Id: I9fcfe72edb8b40efee7c30a72b53812ba0ac656a
Issue-ID: USECASEUI-236
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
server/pom.xml
server/src/main/resources/application.properties

index 5ef9f20..d0d10aa 100644 (file)
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-data-rest</artifactId>
         </dependency>
+        <dependency>
+                       <groupId>org.elasticsearch.client</groupId>
+                       <artifactId>elasticsearch-rest-high-level-client</artifactId>
+                       <version>6.6.0</version>
+                        <exclusions>
+                <exclusion>
+                    <groupId>org.elasticsearch</groupId>
+                    <artifactId>elasticsearch</artifactId>
+                </exclusion>
+              </exclusions>
+               </dependency>
+                <dependency>
+            <groupId>org.elasticsearch</groupId>
+            <artifactId>elasticsearch</artifactId>
+            <version>6.6.0</version>
+        </dependency>
         <dependency>
             <groupId>org.springframework.data</groupId>
             <artifactId>spring-data-rest-hal-browser</artifactId>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.mariadb.jdbc</groupId>
-            <artifactId>mariadb-java-client</artifactId>
-            <version>2.2.2</version>
-        </dependency>
+               <!-- postgresql  dependency-->
+               <dependency>
+                       <groupId>postgresql</groupId>
+                       <artifactId>postgresql</artifactId>
+                       <version>9.1-901-1.jdbc4</version>
+               </dependency>
+               
+               <dependency>
+                       <groupId>org.postgresql</groupId>
+                       <artifactId>postgresql</artifactId>
+                       <scope>runtime</scope>
+               </dependency>
         <dependency>
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
             </snapshots>
         </pluginRepository>
     </pluginRepositories>
-</project>
+</project>
\ No newline at end of file
index 7402b51..48fb0e7 100644 (file)
 ## 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