相关疑难解决方法(0)

无法自动配置DataSource:未指定"spring.datasource.url"

我已经使用Web,MongoDB和JPA依赖项从SPRING INITIALIZR创建了一个基本的Spring启动应用程序.

当我尝试运行spring boot应用程序时,我收到以下异常:

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 …
Run Code Online (Sandbox Code Playgroud)

java spring mongodb spring-data-jpa spring-boot

38
推荐指数
3
解决办法
10万
查看次数

标签 统计

java ×1

mongodb ×1

spring ×1

spring-boot ×1

spring-data-jpa ×1