From 800237ef06f77daf96c7a4b2dfdec00f069a6c4f Mon Sep 17 00:00:00 2001 From: Bhavika Tibrewal Date: Fri, 26 Jan 2024 23:31:42 +0530 Subject: [PATCH] add MYSQL_PORT var to application.properties (#83) --- skill-tree/src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skill-tree/src/main/resources/application.properties b/skill-tree/src/main/resources/application.properties index a7cdbc01..66a1f87c 100644 --- a/skill-tree/src/main/resources/application.properties +++ b/skill-tree/src/main/resources/application.properties @@ -1,5 +1,5 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/${DB_NAME} +spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${DB_NAME} spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect spring.datasource.username=${MYSQL_DB_USERNAME} spring.datasource.password=${MYSQL_DB_PASSWORD}