Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. server.port = 5000
  2. #spring.data.rest.basePath = /api/v1
  3. spring.data.rest.default-page-size = 5
  4.  
  5. #Logger config
  6. logging.level.org.springframework.web=INFO
  7. logging.level.guru.springframework.controllers=INFO
  8. logging.level.org.hibernate=ERROR
  9. logging.file=logs/spring-boot-logging.log
  10. logging.level.com.tripoo.controller=INFO
  11.  
  12. #database
  13.  
  14. # DataSource settings: set here your own configurations for the database
  15. # connection. In this example we have "netgloo_blog" as database name and
  16. # "root" as username and password.
  17. spring.datasource.url = jdbc:mysql://127.0.0.1:5123/tripoo_database
  18. spring.datasource.username = root
  19. spring.datasource.password = root
  20. spring.datasource.driverClassName= com.mysql.cj.jdbc.Driver
  21.  
  22. # Keep the connection alive if idle for a long time (needed in production)
  23. spring.datasource.testWhileIdle = true
  24. spring.datasource.validationQuery = SELECT 1
  25.  
  26. # Show or not log for each sql query
  27. spring.jpa.show-sql = true
  28.  
  29. # Hibernate ddl auto (create, create-drop, update)
  30. spring.jpa.hibernate.ddl-auto = create-drop
  31.  
  32. # Naming strategy
  33. spring.jpa.hibernate.naming.strategy = org.hibernate.cfg.ImprovedNamingStrategy
  34.  
  35. # Use spring.jpa.properties.* for Hibernate native properties (the prefix is
  36. # stripped before adding them to the entity manager)
  37.  
  38. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  39. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement