Advertisement
Guest User

dmispring

a guest
Jan 15th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #Datasource settings: set here your own configurations for the
  2. #database connection
  3. spring.datasource.url=jdbc:mysql://localhost:3306/Utenti?useSSL=false
  4. spring.datasource.username= root
  5. #spring.datasource.password=
  6.  
  7. # Keep the connection alive if idle for a long time (needed in production)
  8. spring.datasource.testWhileIdle = true
  9. spring.datasource.validationQuery = SELECT 1
  10.  
  11.  
  12. # ===============================
  13. # = JPA / HIBERNATE
  14. # ===============================
  15.  
  16. # Show or not log for each sql query
  17. spring.jpa.show-sql = true
  18.  
  19. # Hibernate ddl auto (create, create-drop, update)
  20. spring.jpa.hibernate.ddl-auto = update
  21.  
  22. # Naming strategy
  23. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  24.  
  25. # Allows Hibernate to generate SQL optimized for a particular DBMS
  26. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement