We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93280b1 commit 0f84430Copy full SHA for 0f84430
1 file changed
src/main/resources/application.properties
@@ -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
+spring.datasource.url=jdbc:h2:mem:bookstore
+spring.datasource.driverClassName=org.h2.Driver
+spring.datasource.username=sa
+spring.datasource.password=
+spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
7
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
+spring.h2.console.enabled=true
12
server.port=${PORT:8080}
0 commit comments