diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 758d123..c9e0a59 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,10 +1,6 @@ -# Configuration of database H2 in memory -spring.datasource.url=jdbc:h2:mem:bookingsystem -spring.datasource.driverClassName=org.h2.Driver -spring.datasource.username=h2-booking-system -spring.datasource.password=h2-booking-system -spring.jpa.database-platform=org.hibernate.dialect.H2Dialect -# Properties optional -spring.jpa.defer-datasource-initialization=true -spring.h2.console.enabled=true -spring.jpa.show-sql=true +# Configuration for MongoDB +spring.data.mongodb.uri=${MONGODB_URI_CLUSTER} +spring.data.mongodb.database=booking_system_api_rest +logging.level.org.springframework.data.mongodb.core.MongoTemplate=DEBUG +logging.level.org.springframework.data.mongodb.repository.Query=DEBUG +spring.data.mongodb.auto-index-creation=true