title: Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified
body: <p>I have created a basic spring boot application from <strong>SPRING INITIALIZR</strong> with the Web, MongoDB and JPA dependencies. </p>
  
  <p>When I try to run the spring boot application I am getting the following exception:</p>
  
  <pre><code>Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  2018-03-25 16:27:02.807 ERROR 16256 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 
  
  ***************************
  APPLICATION FAILED TO START
  ***************************
  Description:
  Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
  Reason: Failed to determine a suitable driver class
  
  Action:
  
  Consider the following situation:
  If you want an embedded database like H2, HSQL or Derby, please add it in the Classpath.
  If you have database settings to be loaded from a particular profile you may need to activate it since no profiles were currently active.
  </code></pre>
  
  <p>In application.properties file I am having the following configuration:</p>
  
  <pre><code>server.port=8081
  spring.data.mongodb.database=TestDatabase
  spring.data.mongodb.host=localhost
  spring.data.mongodb.port=27017
  </code></pre>
  
  <p><strong>Versions which I use:</strong>
  Spring : 5.0.4,
  MongoDB : 3.6,
  Spring Boot: 2.0</p>