Skip to content

Commit

Permalink
Properties connection to mongodb.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidorellana98 committed Dec 17, 2022
1 parent 09d77b4 commit 05ee78f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 05ee78f

Please sign in to comment.