diff --git a/backend/src/main/resources/application-prod.yaml b/backend/src/main/resources/application-prod.yaml index 860dc7fe..fef3a48f 100644 --- a/backend/src/main/resources/application-prod.yaml +++ b/backend/src/main/resources/application-prod.yaml @@ -2,6 +2,10 @@ server: port: 5000 spring: + profiles: + active: local + session: + store-type: jdbc jpa: database: MYSQL show-sql: true @@ -9,6 +13,7 @@ spring: hibernate: ddl-auto: update datasource: + driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/trip username: ${DB_USERNAME} password: ${DB_PASSWORD} \ No newline at end of file diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml new file mode 100644 index 00000000..d9cf2cbb --- /dev/null +++ b/backend/src/main/resources/application.yml @@ -0,0 +1,15 @@ +server: + port: 5000 + +spring: + jpa: + database: MYSQL + show-sql: true + database-platform: org.hibernate.dialect.MySQL8Dialect + hibernate: + ddl-auto: update + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/trip + username: ${DB_USERNAME} + password: ${DB_PASSWORD} \ No newline at end of file