diff --git a/pom.xml b/pom.xml
index 4b6fd187..4b71f17c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,16 +33,16 @@
spring-boot-starter
-
- mysql
- mysql-connector-java
- runtime
-
+
+ com.h2database
+ h2
+ runtime
+
org.projectlombok
lombok
- 1.18.12
+ 1.18.28
provided
diff --git a/src/main/resources/_application.properties b/src/main/resources/_application.properties
index d7d7b14c..63b186ab 100644
--- a/src/main/resources/_application.properties
+++ b/src/main/resources/_application.properties
@@ -1,12 +1,11 @@
-spring.jpa.hibernate.ddl-auto=none
-spring.datasource.url=jdbc:mysql://localhost:3306/blogapi?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
+spring.datasource.url=jdbc:h2:mem:testdb
+spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=root
spring.datasource.password=root
-spring.jpa.show-sql=true
-spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
+spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
app.jwtSecret=secret
# Expiration in milliseconds - 1 Hour
app.jwtExpirationInMs=3600000
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
spring.jackson.time-zone=UTC
-cors.allowedOrings=*
+cors.allowedOrigins=*
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index ef6d7e3d..fe09d359 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,6 +1,6 @@
spring:
datasource:
- url: jdbc:mysql://blogapi-db:3306/blogapi?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
+ url: jdbc:h2:mem:testdb
username: root
password: root
jpa:
@@ -9,7 +9,7 @@ spring:
show-sql: true
properties:
hibernate:
- dialect: org.hibernate.dialect.MySQL5Dialect
+ dialect: org.hibernate.dialect.H2Dialect
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false