Skip to content

Instantly share code, notes, and snippets.

@kelverarruda
Last active November 5, 2021 11:48
Show Gist options
  • Save kelverarruda/3a5c21014a84abe62bd1b4ccdc8e7b24 to your computer and use it in GitHub Desktop.
Save kelverarruda/3a5c21014a84abe62bd1b4ccdc8e7b24 to your computer and use it in GitHub Desktop.
Config Spring Data PostgreSQL DB
# 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