Advertisement
Guest User

application-properties

a guest
Jan 27th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # PostgresDB config
  2. spring.datasource.url=jdbc:postgresql://localhost:5432/parking
  3. spring.datasource.driver-class-name=org.postgresql.Driver
  4.  
  5. spring.datasource.username=postgres
  6. spring.datasource.password=aphextwin
  7. spring.jpa.show-sql=true
  8.  
  9. ### Hibernate Properties
  10. ## The SQL dialect makes Hibernate generate better SQL for the chosen database
  11. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
  12.  
  13. ## Hibernate ddl auto (create, create-drop, validate, update)
  14. spring.jpa.hibernate.ddl-auto=create-drop
  15.  
  16. # Setting for filling initial data
  17. # set this to always for load initial data from data-postgresql.sql file
  18. spring.datasource.initialization-mode=never
  19. spring.datasource.platform=postgresql
  20.  
  21. # Enable columns naming from entities annotation
  22. spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.EJB3NamingStrategy
  23.  
  24. # Enable scheduling
  25. spring.enable.scheduling=true
  26.  
  27. # Setting for background task
  28. scheduler.delete-stats.cron="0 0 1 * * *"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement