From 771de12216be18e324d845dd7aef6e239931ab49 Mon Sep 17 00:00:00 2001 From: Badri Paudel Date: Sat, 2 Mar 2024 21:37:52 +0545 Subject: [PATCH] localhost changed to 127.0.0.1 --- .../resources/application-default.properties | 2 +- src/main/resources/application.properties | 41 ------------------- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 src/main/resources/application.properties diff --git a/src/main/resources/application-default.properties b/src/main/resources/application-default.properties index 22c0d25..2b0f9fd 100644 --- a/src/main/resources/application-default.properties +++ b/src/main/resources/application-default.properties @@ -3,7 +3,7 @@ server.port = 8080 #with docker-compose these parameters will be ignored [overriden] as docker-compose.yml will have all the configurations required. -spring.datasource.url=jdbc:postgresql://localhost:5432/info_keeper_sb +spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/info_keeper_sb spring.datasource.username=postgres spring.datasource.password=postgres spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL81Dialect diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 4739425..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1,41 +0,0 @@ -# will be used for local development -#config file -server.port = 8080 - -#with docker-compose these parameters will be ignored [override] as docker-compose.yml will have all the configurations required. -spring.datasource.url=jdbc:postgresql://localhost:5432/info_keeper_sb -spring.datasource.username=postgres -spring.datasource.password=postgres -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL81Dialect - -spring.jpa.show-sql = true -spring.jpa.hibernate.ddl-auto = update - -logging.level.org.springframework.web: DEBUG -logging.level.org.hibernate: ERROR - -spring.devtools.restart.enabled=true - -#enable file uploading -multipart.enabled=true -#limit the file size to 10MB -spring.servlet.multipart.max-file-size=10MB -spring.servlet.multipart.max-request-size=10MB - - -#properties to send the mail using spring boot - -# TLS , port 587 -spring.mail.properties.mail.smtp.starttls.enable=true - -spring.mail.host=smtp.gmail.com -spring.mail.port=587 -spring.mail.username=email -spring.mail.password=password - - -# Other properties -spring.mail.properties.mail.smtp.auth=true -spring.mail.properties.mail.smtp.connectiontimeout=5000 -spring.mail.properties.mail.smtp.timeout=5000 -spring.mail.properties.mail.smtp.writetimeout=5000