Skip to content

Instantly share code, notes, and snippets.

@fronzec
Last active April 14, 2021 03:24
Show Gist options
  • Select an option

  • Save fronzec/d801272f8b6feb20a45241cfdf353744 to your computer and use it in GitHub Desktop.

Select an option

Save fronzec/d801272f8b6feb20a45241cfdf353744 to your computer and use it in GitHub Desktop.
application.properties file
## Application configuration
# We customize our application context path
server.servlet.context-path=/api/my-awesome-service
## Database Properties, our props values must be injected through env variables
spring.datasource.url=jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_PASS}
spring.datasource.driver-class-name=org.postgresql.Driver
## Hibernate Properties
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Hibernate DDL auto (create, create-drop, validate, update)
# It's hightly recomend to use 'none' value for PRODUCTION,
# for development we can use update
spring.jpa.hibernate.ddl-auto=update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment