Guest User

Untitled

a guest
Jan 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. # Datasource
  2.  
  3. #spring.h2.console.enabled=true
  4. #spring.h2.console.path=/h2
  5. #jdbc:h2:file:~/test
  6. #spring.datasource.driver-class-name=org.h2.Driver
  7.  
  8. spring.datasource.driverClassName=org.postgresql.Driver
  9. spring.datasource.url=jdbc:postgresql://localhost:5595/testdb
  10. spring.datasource.username=postgres
  11. spring.datasource.password=
  12. spring.jpa.generate-ddl=true
  13.  
  14.  
  15. # = JPA / HIBERNATE
  16. # ===============================
  17. # Show or not log for each sql query
  18. spring.jpa.show-sql=true
  19. # Hibernate ddl auto (create, create-drop, update): with "create-drop" the database
  20. # schema will be automatically created afresh for every start of application
  21. spring.jpa.hibernate.ddl-auto=update
  22.  
  23. # Naming strategy
  24. spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
  25. spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  26.  
  27. # Allows Hibernate to generate SQL optimized for a particular DBMS
  28. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
Add Comment
Please, Sign In to add comment