Guest User

Untitled

a guest
Jan 27th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4. # Set here configurations for the database connection
  5. spring.datasource.url=jdbc:postgresql://localhost:5432/springbootdb
  6. spring.datasource.username=postgres
  7. spring.datasource.password=postgres@123
  8. spring.datasource.driver-class-name=org.postgresql.Driver
  9. # Keep the connection alive if idle for a long time (needed in production)
  10. spring.datasource.testWhileIdle=true
  11. spring.datasource.validationQuery=SELECT 1
  12. # ===============================
  13. # = JPA / HIBERNATE
  14. # ===============================
  15. # Show or not log for each sql query
  16. spring.jpa.show-sql=true
  17. # Hibernate ddl auto (create, create-drop, update): with "create-drop" the database
  18. # schema will be automatically created afresh for every start of application
  19. spring.jpa.hibernate.ddl-auto=create-drop
  20.  
  21. # Naming strategy
  22. spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
  23. spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  24.  
  25. # Allows Hibernate to generate SQL optimized for a particular DBMS
  26. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
Add Comment
Please, Sign In to add comment