Advertisement
Guest User

Untitled

a guest
May 9th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4. # Connection url for the database connection
  5. spring.datasource.url = jdbc:mysql://localhost:27017/purchase_books
  6.  
  7. # Username and password
  8. spring.datasource.username = root
  9. spring.datasource.password = root
  10.  
  11. # Keep the connection alive if idle for a long time (needed in production)
  12. spring.datasource.testWhileIdle = true
  13. spring.datasource.validationQuery = SELECT 1
  14.  
  15. # ===============================
  16. # = JPA / HIBERNATE
  17. # ===============================
  18. # Show or not log for each sql query
  19. spring.jpa.show-sql = true
  20.  
  21. # Hibernate ddl auto (create, create-drop, update): with "update" the database
  22. # schema will be automatically updated accordingly to java entities found in the project
  23. spring.jpa.hibernate.ddl-auto = update
  24.  
  25. # Naming strategy
  26. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  27.  
  28. # Allows Hibernate to generate SQL optimized for a particular DBMS
  29. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement