Skip to content

Commit 0f84430

Browse files
Update application.properties
1 parent 93280b1 commit 0f84430

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
spring.datasource.url=jdbc:mysql://localhost:3306/bookstore_db
2-
spring.datasource.username=root
3-
spring.datasource.password=NewStrongPassword
4-
5-
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
6-
1+
spring.datasource.url=jdbc:h2:mem:bookstore
2+
spring.datasource.driverClassName=org.h2.Driver
3+
spring.datasource.username=sa
4+
spring.datasource.password=
5+
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
76
spring.jpa.hibernate.ddl-auto=update
8-
spring.jpa.show-sql=true
9-
10-
# ✅ Add this line to manually set dialect
11-
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
7+
spring.h2.console.enabled=true
128
server.port=${PORT:8080}

0 commit comments

Comments
 (0)