title: how to configure both mongodb and postgres in spring boot application.yml?
body: <p>We have spring boot project , in which we need to use mongo and postgres , but i thought am failing in configuring mongo and postgres details applicaiton.yml , below my what i configured , can any one please help me </p>
  
  <pre><code>spring:
      profiles: stage
      data:
        mongodb:
          host: mongodb-host
          port: 27017
          password: password
          username: username
          authentication-database: database
          database: database
      datasource:
          driver-class-name: org.postgresql.Driver
          url: postgres-url
          username: user-name
          password: password
          tomcat:
            validation-interval: 30000
            test-on-borrow: true
            validation-query: SELECT 1
  </code></pre>
  
  <p>when i start my spring-boot application , it is failing to start with below error</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: jdbcUrl is required with driverClassName.
  </code></pre>
  
  <p>can any one please help</p>