Skip to content

Commit

Permalink
Configuraçoes para banco H2 em memória para teste da API
Browse files Browse the repository at this point in the history
  • Loading branch information
edvaldoljr committed Apr 29, 2022
1 parent 73d3424 commit 6bad33c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

17 changes: 17 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spring:

datasource:
url: jdbc:h2:mem:testdb
username: sa
password:
driverClassName: org.h2.Driver

jpa:
database-platform: org.hibernate.dialect.H2Dialect
properties.hibernate.show_sql: true
properties.hibernate.format_sql: true

h2:
console:
enabled: true
path: /h2

0 comments on commit 6bad33c

Please sign in to comment.