Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-v23-03
backend
Commits
5e690a69
Commit
5e690a69
authored
2 years ago
by
Stian Lyng
Browse files
Options
Downloads
Patches
Plain Diff
add test h2 properties
parent
81f0b4e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/application-test.properties
+6
-0
6 additions, 0 deletions
src/main/resources/application-test.properties
src/main/resources/application.properties
+14
-21
14 additions, 21 deletions
src/main/resources/application.properties
with
20 additions
and
21 deletions
src/main/resources/application-test.properties
0 → 100644
+
6
−
0
View file @
5e690a69
# H2 Database
spring.datasource.url
=
jdbc:h2:mem:testdb
spring.datasource.username
=
sa
spring.datasource.password
=
spring.datasource.driver-class-name
=
org.h2.Driver
spring.h2.console.enabled
=
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
14
−
21
View file @
5e690a69
# PostgreSQL Database
# Database connection settings
spring.datasource.testWhileIdle
=
true
spring.datasource.url
=
jdbc:postgres://smartmat_user:Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC@dpg-cgv5710dh87i4q0fd1b0-a.frankfurt-postgres.render.com/smartmat
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.username
=
smartmat_user
spring.datasource.password
=
Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC
spring.datasource.driver-class-name
=
org.postgresql.Driver
spring.jpa.show-sql
=
true
## info
spring.jpa.hibernate.ddl-auto
=
create-drop
spring.jpa.hibernate.naming.implicit-strategy
=
org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
# Hostname: dpg-cgv5710dh87i4q0fd1b0-a
spring.jpa.hibernate.naming.physical-strategy
=
org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
# Port: 5432
# Database: smartmat
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.PostgreSQLDialect
# Username: smartmat_user
# Password: Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC
# H2 Database
# Internal Database URl (from render): postgres://smartmat_user:Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC@dpg-cgv5710dh87i4q0fd1b0-a/smartmat
spring.datasource.url
=
jdbc:h2:mem:testdb
# External Database URL: postgres://smartmat_user:Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC@dpg-cgv5710dh87i4q0fd1b0-a.frankfurt-postgres.render.com/smartmat
spring.datasource.username
=
sa
#
PSQL
Command
:
PGPASSWORD=Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC psql -h dpg-cgv5710dh87i4q0fd1b0-a.frankfurt-postgres.render.com -U smartmat_user smartmat
spring.datasource.password
=
\ No newline at end of file
spring.datasource.driver-class-name
=
org.h2.Driver
spring.jpa.hibernate.ddl-auto
=
create-drop
spring.jpa.show-sql
=
true
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.H2Dialect
spring.jpa.properties.hibernate.format_sql
=
true
spring.jpa.database-platform
=
org.hibernate.dialect.H2Dialect
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment