Last active
November 5, 2021 11:48
-
-
Save kelverarruda/3a5c21014a84abe62bd1b4ccdc8e7b24 to your computer and use it in GitHub Desktop.
Config Spring Data PostgreSQL DB
This file contains 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
# DATABASE | |
spring.datasource.url=jdbc:postgresql://localhost:5432/databasename | |
spring.datasource.username=postgres | |
spring.datasource.password=postgres | |
spring.datasource.driver-class-name=org.postgresql.Driver | |
# JPA | |
spring.jpa.hibernate.ddl-auto=update | |
spring.jpa.show-sql=true | |
spring.jpa.properties.hibernate.format_sql=true | |
spring.jpa.open-in-view=false | |
# THYMELEAF | |
spring.thymeleaf.cache=false | |
spring.thymeleaf.encoding=UTF-8 | |
# MESSAGES | |
spring.messages.encoding=UTF-8 | |
# SERVER | |
server.port=8080 | |
server.servlet.context-path=/{pathapp} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment