开发者社区 > 云原生 > 微服务 > 正文

微服务访问RDS报错Failed to configure a DataSource: 'url'…

现在做一个springboot微项目部署阿里云端,配置ECS+redis+RDS,在部署应用启动微服务时无法启动,报错信息: Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

Action:

Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active). 项目在本地环境可以正常启动,上云时改动了配置,数据库连接的配置: image.png 请大神帮看看是什么问题。数据库确定可以在ESC上连接

展开
收起
游客aqk2ctmfybo3w 2020-07-29 21:08:45 1249 0
0 条回答
写回答
取消 提交回答

为微服务建设降本增效,为微服务落地保驾护航。

相关电子书

更多
微服务治理技术白皮书 立即下载
微服务与Serverless 立即下载
EDAS4.0 助力企业一站实现微服务架构转型与 K8s 容器化升级 立即下载

相关镜像