Advertisement
Guest User

Untitled

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