Guest User

Untitled

a guest
May 11th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 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:3307/mydatabase
  5. spring.datasource.username=root
  6. spring.datasource.password=azertY31
  7. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  8.  
  9. # Keep the connection alive if idle for a long time (needed in production)
  10. #spring.datasource.testWhileIdle = true
  11. #spring.datasource.validationQuery = SELECT 1
  12.  
  13. # Show or not log for each sql query
  14. spring.jpa.show-sql = true
  15.  
  16. # Hibernate ddl auto (create, create-drop, update)
  17. #spring.jpa.hibernate.ddl-auto = update
  18.  
  19. # Naming strategy
  20. spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
  21.  
  22. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  23. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Add Comment
Please, Sign In to add comment