Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. # Configure the View Resolver
  2. spring.view.prefix=/WEB-INF/vefvidmot/
  3. spring.view.suffix=.jsp
  4.  
  5. # ========================= #
  6. # DATABASE CONNECTION SETUP #
  7. # ========================= #
  8. # The URL to your database
  9. spring.datasource.url=jdbc:postgresql://horton.elephantsql.com:5432/fylmgviu
  10.  
  11. # User name and Password to your database
  12. spring.datasource.username=fylmgviu
  13. spring.datasource.password=yyX5_9E3viuEa1CyBciBltTjVo06CjVs
  14.  
  15. # What Driver to use
  16. spring.datasource.driver-class-name=org.postgresql.Driver
  17. spring.datasource.maxActive=3
  18.  
  19. # ============================= #
  20. # DATA JPA - HIBERNATE SETTINGS #
  21. # ============================= #
  22.  
  23. # To offload the responsibility to create the database tables for our
  24. # entities to the DATA JPA system, we can use the following configuration
  25. spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
  26. spring.jpa.hibernate.ddl-auto=create
  27.  
  28. # There are 5 possible values we can give this configuration, see below for what each one does
  29. # update -> update the schema
  30. # create -> creates the schema, destroying previous data
  31. # create-drop -> creates the schema, drop the schema at the end of the session
  32. # none -> do nothing
  33. # validate -> Validate the schema, makes no changes to the database
  34.  
  35. # NOTE:
  36. # Sometimes in development when rapid changes are made on entities, the database
  37. # tables can become a bit wonky, e.g. you add attributes to entities, change
  38. # data type (e.g. int to Long), etc. If you are having some weird problems you can
  39. # try and set this option to `create` and run the system to force a drop of the schema
  40. # and creation of the schema as it should be.
  41. # ALL THE DATA IN THE DATABASE WILL BE LOST. BACK IT UP IF YOU NEED IT!
  42. # Just remember to revert the option back to `update` or `none` if you want any
  43. # data to be persistent after that.
  44.  
  45. # Log SQL Statements
  46. spring.jpa.show-sql=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement