From 973b4443fd325824a7d6128d7cf51427abb0ecd6 Mon Sep 17 00:00:00 2001 From: Ajay Negi <97536703+ajaynegi45@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:37:22 +0530 Subject: [PATCH] Update --- .../application-development.properties | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application-development.properties b/src/main/resources/application-development.properties index e16234d..6edbbda 100644 --- a/src/main/resources/application-development.properties +++ b/src/main/resources/application-development.properties @@ -7,17 +7,38 @@ spring.datasource.url=jdbc:mysql://localhost:3306/Add_Your_Database_Name ## Add your Database Username and Password -spring.datasource.username= Add_Your_UserName -spring.datasource.password= Add_Your_Password +spring.datasource.username=Add_Your_UserName +spring.datasource.password=Add_Your_Password -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +# Hibernate Dialect for MySQL 8 +spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect + +# Prevent early database interaction +spring.jpa.properties.hibernate.boot.allow_jdbc_metadata_access=false spring.jpa.hibernate.ddl-auto=update -spring.jpa.properties.hibernate.format_sql=true +spring.sql.init.mode=never +# Format SQL +spring.jpa.properties.hibernate.format_sql=true +# Error Handling server.error.include-binding-errors=always server.error.include-message=always server.error.include-stacktrace=never server.error.include-exception=true -logging.level.org.springframework.security = TRACE \ No newline at end of file +# Logging for Spring Security +logging.level.org.springframework.security=TRACE + + + +# --- Mail Service Setup --- + +# I use docker mail service https://hub.docker.com/r/maildev/maildev +spring.mail.host=Add_Your_Mail_Service_Host +spring.mail.port=Add_Your_Mail_Service_Port +spring.mail.username=Add_Your_Mail_Service_Username +spring.mail.password=Add_Your_Mail_Service_Password +spring.mail.properties.mail.smtp.auth=Add_Your_Mail_Service_SMTP +spring.mail.properties.mail.starttls.enable=Add_Your_Mail_Service_Start_TLS +spring.mail.properties.domain_name=Add_Your_Mail_Service_Domain_Name \ No newline at end of file