Skip to content

Commit

Permalink
feat : h2 설정 추가 #2
Browse files Browse the repository at this point in the history
  • Loading branch information
soleu committed Sep 25, 2024
1 parent 985d6eb commit 54483ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/get_offer/user/domain/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id

@Entity
@Entity(name = "users")
class User(
private val nickname: String,

Expand Down
18 changes: 18 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
spring:
application:
name: get-offer
datasource:
driver-class-name: org.h2.Driver
url: 'jdbc:h2:mem:test'
username: username
password: password
h2:
console:
enabled: true
path: /h2-console
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: create
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
format_sql: true
show_sql: true

0 comments on commit 54483ea

Please sign in to comment.