Advertisement
Guest User

application-dev.properties

a guest
Apr 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1.  
  2. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  3. spring.datasource.url=jdbc:mysql://localhost/phoneshop?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  4.  
  5. spring.datasource.username=root
  6. spring.datasource.password=admin
  7.  
  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.hbm2ddl.auto=update
  18. spring.jpa.generate-ddl=true
  19.  
  20. # Naming strategy
  21. spring.jpa.hibernate.naming.strategy=org.hibernate.cfg.EJB3NamingStrategy
  22.  
  23. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  24. # stripped before adding them to the entity manager)
  25.  
  26. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  27. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement