Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1.  
  2. # Loging
  3. #logging.level.og.mampu.spk.web = DEBUG
  4. #logging.level.og.mampu.spk.web.util = DEBUG
  5.  
  6. # logging.level.org.hibernate.type = trace
  7.  
  8. #logging.file=/tmp/spk2.log
  9.  
  10. # ===============================
  11. # = DATA SOURCE
  12. # ===============================
  13.  
  14. # Set here connection pool name
  15. #spring.datasource.jndi-name=java:comp/env/jdbc/spk2
  16.  
  17. # Set here configurations for the database connection
  18. #spring.datasource.url = jdbc:postgresql://10.24.17.197/spk2test
  19. spring.datasource.url = jdbc:postgresql://localhost:5432/mydb
  20. # Username and password
  21. #spring.datasource.username = spk2
  22. #spring.datasource.password = 123456
  23. spring.datasource.username = postgres
  24. spring.datasource.password = simontempler
  25.  
  26.  
  27. # Keep the connection alive if idle for a long time (needed in production)
  28. spring.datasource.testWhileIdle = true
  29. spring.datasource.validationQuery = SELECT 1
  30.  
  31. # ===============================
  32. # = JPA / HIBERNATE
  33. # ===============================
  34.  
  35. # Show or not log for each sql query
  36. spring.jpa.show-sql = false
  37.  
  38. # Hibernate ddl auto (create, create-drop, update): with "update" the database
  39. # schema will be automatically updated accordingly to java entities found in
  40. # the project
  41. spring.jpa.hibernate.ddl-auto = update
  42.  
  43. # Naming strategy
  44. spring.jpa.hibernate.naming.strategy = org.hibernate.cfg.ImprovedNamingStrategy
  45.  
  46. # Allows Hibernate to generate SQL optimized for a particular DBMS
  47. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement