Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Configure the View Resolver
- spring.view.prefix=/WEB-INF/vefvidmot/
- spring.view.suffix=.jsp
- # ========================= #
- # DATABASE CONNECTION SETUP #
- # ========================= #
- # The URL to your database
- spring.datasource.url=jdbc:postgresql://horton.elephantsql.com:5432/fylmgviu
- # User name and Password to your database
- spring.datasource.username=fylmgviu
- spring.datasource.password=yyX5_9E3viuEa1CyBciBltTjVo06CjVs
- # What Driver to use
- spring.datasource.driver-class-name=org.postgresql.Driver
- spring.datasource.maxActive=5
- # ============================= #
- # DATA JPA - HIBERNATE SETTINGS #
- # ============================= #
- # To offload the responsibility to create the database tables for our
- # entities to the DATA JPA system, we can use the following configuration
- spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
- spring.jpa.hibernate.ddl-auto=create
- # There are 5 possible values we can give this configuration, see below for what each one does
- # update -> update the schema
- # create -> creates the schema, destroying previous data
- # create-drop -> creates the schema, drop the schema at the end of the session
- # none -> do nothing
- # validate -> Validate the schema, makes no changes to the database
- # NOTE:
- # Sometimes in development when rapid changes are made on entities, the database
- # tables can become a bit wonky, e.g. you add attributes to entities, change
- # data type (e.g. int to Long), etc. If you are having some weird problems you can
- # try and set this option to `create` and run the system to force a drop of the schema
- # and creation of the schema as it should be.
- # ALL THE DATA IN THE DATABASE WILL BE LOST. BACK IT UP IF YOU NEED IT!
- # Just remember to revert the option back to `update` or `none` if you want any
- # data to be persistent after that.
- # Log SQL Statements
- spring.jpa.show-sql=true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement