From fd2c8ad2faa6b6e2c38cdc6e7c730ba404183278 Mon Sep 17 00:00:00 2001 From: Neha Verma Date: Wed, 20 Nov 2024 12:41:52 +0530 Subject: [PATCH] Update application.properties --- .../src/main/resources/application.properties | 41 +++++++------------ 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/udacity-jwdnd-c1-l2-server-config-master/src/main/resources/application.properties b/udacity-jwdnd-c1-l2-server-config-master/src/main/resources/application.properties index 5ce71c5..eb34ec8 100644 --- a/udacity-jwdnd-c1-l2-server-config-master/src/main/resources/application.properties +++ b/udacity-jwdnd-c1-l2-server-config-master/src/main/resources/application.properties @@ -1,30 +1,19 @@ -# config port and host -server.port=8080 -server.address=localhost +server.error.include-message=always +server.error.include-binding-errors=always +#Please update data source url, username and password properties below +#Sample shown below, `registration` in data source URL property depicts the DB name in database and should be replaced with actual DB name -# config ssl -server.ssl.enabled=true -server.ssl.protocol=TLS +#spring.datasource.url=jdbc:postgresql://localhost:5432/registration +#spring.datasource.username=postgres +#spring.datasource.password=postgres +spring.datasource.url= +spring.datasource.username= +spring.datasource.password= +spring.jpa.hibernate.ddl-auto=update +spring.jpa.hibernate.boot.allow_jdbc_metadata_access=false +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +spring.jpa.properties.hibernate.format_sql=true -# error URL path -server.error.path=/error -# enable default error page -server.error.whitelabel.enabled=true - - -# request busy queue length -server.tomcat.accept-count=100 - - -# set console banner character set -spring.banner.charset=UTF-8 -# set console banner height -spring.banner.image.height=20 - - -# config database url and credentials -spring.datasource.url=jdbc:postgres://localhost:5432 -spring.datasource.username=admin -spring.datasource.password=password \ No newline at end of file +spring.show-sql=true