Last active
April 14, 2021 03:24
-
-
Save fronzec/d801272f8b6feb20a45241cfdf353744 to your computer and use it in GitHub Desktop.
application.properties file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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