Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.33 KB | None | 0 0
  1. # DataSource settings: set here your own configurations for the database
  2. # connection. In this example we have "netgloo_blog" as database name and
  3. # "root" as username and password.
  4. spring.datasource.url = jdbc:mysql://localhost:3306/test3?autoReconnect=true&useSSL=false
  5. spring.datasource.username = root
  6. spring.datasource.password = admin
  7.  
  8. # Keep the connection alive if idle for a long time (needed in production)
  9. spring.datasource.testWhileIdle = true
  10. spring.datasource.validationQuery = SELECT 1
  11.  
  12. # Show or not log for each sql query
  13. spring.jpa.show-sql = true
  14.  
  15. # Hibernate ddl auto (create, create-drop, update)
  16. #Using the hibernate configuration ddl-auto = update the database
  17. #schema will be automatically created (and updated),
  18. #creating tables and columns, accordingly to java entities found in the project.
  19. spring.jpa.hibernate.ddl-auto = update
  20.  
  21. # Naming strategy
  22. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  23.  
  24. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  25. # stripped before adding them to the entity manager)
  26.  
  27. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  28. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  29. spring.thymeleaf.mode=LEGACYHTML5
  30. #spring.jpa.hibernate.enable_lazy_load_no_trans=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement