Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. server.port=${PORT:8080}
  2.  
  3. #Database MySQL CLOUD
  4. spring.datasource.url = jdbc:mysql://localhost:3306/demo_user
  5. spring.datasource.username = root
  6. spring.datasource.password =
  7. #spring.datasource.maxActive=8
  8. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  9. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  10.  
  11.  
  12. # Keep the connection alive if idle for a long time (needed in production)
  13. spring.datasource.testWhileIdle = true
  14. spring.datasource.validationQuery = SELECT 1
  15.  
  16. # Show or not log for each sql query
  17. spring.jpa.show-sql = false
  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. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  26. # stripped before adding them to the entity manager)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement