Guest User

Untitled

a guest
Aug 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # ===============================
  2. # = DATA SOURCE
  3. # ===============================
  4. # Set here configurations for the database connection
  5. spring.datasource.url=jdbc:mysql://localhost:3306/springboot_mysql_example
  6. spring.datasource.username=root
  7. #spring.datasource.password=YOUR_DB_PASSWORD
  8. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  9.  
  10. # Keep the connection alive if idle for a long time (needed in production)
  11. spring.datasource.testWhileIdle=true
  12. spring.datasource.validationQuery=SELECT 1
  13. # ===============================
  14. # = JPA / HIBERNATE
  15. # ===============================
  16. # Show or not log for each sql query
  17. spring.jpa.show-sql=true
  18. # Hibernate ddl auto (create, create-drop, update): with "create-drop" the database
  19. # schema will be automatically created afresh for every start of application
  20. spring.jpa.hibernate.ddl-auto=create-drop
  21. # Naming strategy
  22. spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
  23. spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  24. # Allows Hibernate to generate SQL optimized for a particular DBMS
  25. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
Add Comment
Please, Sign In to add comment