From 8beaf48cc94b7f01eb28178e07d0c57279b6a485 Mon Sep 17 00:00:00 2001
From: Mahesh Maney R <mahesh-maney@users.noreply.github.com>
Date: Fri, 11 Aug 2023 15:39:08 +0530
Subject: [PATCH] adding postgres dependency and data source to properties
 <ManeyMR>.

---
 pom.xml                                   | 17 +++++++++++++++++
 src/main/resources/application.properties |  7 ++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 89b3c90..6a80476 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,6 +41,23 @@
 			<artifactId>reactor-test</artifactId>
 			<scope>test</scope>
 		</dependency>
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-devtools</artifactId>
+			<scope>runtime</scope>
+			<optional>true</optional>
+		</dependency>
+		<dependency>
+			<groupId>io.r2dbc</groupId>
+			<artifactId>r2dbc-postgresql</artifactId>
+			<version>0.8.11.RELEASE</version>
+			<scope>runtime</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.postgresql</groupId>
+			<artifactId>postgresql</artifactId>
+			<scope>runtime</scope>
+		</dependency>
 	</dependencies>
 
 	<build>
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index fb82c19..0ff18db 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1 +1,6 @@
-server.port =
+server.port = 5298
+spring.r2dbc.url = r2dbc:postgresql://localhost:5432/userDb
+spring.r2dbc.url.username = postgres
+spring.r2dbc.url.password = root
+springdoc.swagger-ui.path = /swagger-ui.html
+
-- 
GitLab