Update application-postgres.properties

This commit is contained in:
Mohit Kumar 2024-09-26 21:55:14 -04:00 committed by GitHub
parent 5e4fc17b60
commit bd8385761a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,19 @@
# PostgreSQL Configuration
database=postgres
spring.datasource.url=${POSTGRES_URL:jdbc:postgresql://localhost/petclinic}
spring.datasource.username=${POSTGRES_USER:petclinic}
spring.datasource.password=${POSTGRES_PASS:petclinic}
# SQL is written to be idempotent so this is safe
spring.datasource.url=jdbc:postgresql://postgresql:5432/sampledb
spring.datasource.username=user_petclinic
spring.datasource.password=123456
spring.datasource.driver-class-name=org.postgresql.Driver
# SQL Initialization
spring.sql.init.mode=always
spring.sql.init.schema-locations=classpath*:db/postgres/schema.sql
spring.sql.init.data-locations=classpath*:db/postgres/data.sql
# JPA Hibernate Configuration
spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Logging
logging.level.org.springframework=INFO