启动服务报错:If you want an embedded database please put a supported one on the classpath. If you have dat

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-11-19 10:10:57.271 ERROR [bootstrap,,,] 30460 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Cannot determine embedded database driver class for database type NONE

Action:

If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (the profiles "localResource,healthCheck" are currently active).

翻译过来这样:

错误ApplicationContext开始。要显示自动配置报告,请在启用'debug'的情况下重新运行应用程序。
错误[bootstrap…]30460—[main] o.s.b.d。LoggingFailureAnalysisReporter:
* * * * * * * * * * * * * * * * * * * * * * * * * * *
应用程序启动失败
* * * * * * * * * * * * * * * * * * * * * * * * * * *
描述:
无法为数据库类型NONE确定嵌入式数据库驱动程序类
行动:
如果您想要嵌入式数据库,请在类路径中放置一个受支持的数据库。如果你需要从一个特定的配置文件中加载数据库设置,你可能需要激活它(配置文件“localResource,healthCheck”当前是激活的)。

解决方案之一:对应启动服务的pom加个这个

<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<scope>runtime</scope>
		</dependency>
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值