Advertisement
Guest User

Untitled

a guest
Oct 31st, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. spring.datasource.url = jdbc:mysql://localhost:3306/test
  2. spring.datasource.username =
  3. spring.datasource.password =
  4.  
  5. # Keep the connection alive if idle for a long time (needed in production)
  6. spring.datasource.testWhileIdle = true
  7. spring.datasource.validationQuery = SELECT 1
  8.  
  9. # Show or not log for each sql query
  10. spring.jpa.show-sql = true
  11.  
  12. # Hibernate ddl auto (create, create-drop, update)
  13. spring.jpa.hibernate.ddl-auto = update
  14.  
  15. # Naming strategy
  16. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  17.  
  18. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  19. # stripped before adding them to the entity manager)
  20.  
  21. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  22. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement