当前位置:网站首页>Idea error failed to determine a suitable driver class
Idea error failed to determine a suitable driver class
2022-07-25 14:20:00 【Lin fanchen coding】
List of articles
The phenomenon
In the process of doing the project , It is necessary to distinguish several sets of environments , commonly SpringBoot The configuration file of the project will also be separated , as follows :
application-db-dev.yml
application-db-local.yml
application-dev.yml
application-local.yml
application.yml
Now make a copy local As dev Environmental , And then in application.yml change spring.profiles.active=local, It should be able to start directly , But the error is reported as follows :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-05-06 23:35:15.267 ERROR 12944 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
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).
Process finished with exit code 1
The exception indicates that the connection address of the database is not found , Guess it is application-db-local.yml The document is not effective .
solve
Contact sign resources Catalog

Re label resources Catalog

边栏推荐
猜你喜欢

Okaleido ecological core equity Oka, all in fusion mining mode

Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO

Realize a family security and environmental monitoring system (I)

How to design a high concurrency system?

From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part I)
![[original] nine point calibration tool for robot head camera calibration](/img/de/5ea86a01f1a714462b52496e2869d6.png)
[original] nine point calibration tool for robot head camera calibration

Teach you how to apply for SSL certificate

maya建模练习

Hyperautomation for the enhancement of automation in industries

Setting of parameter configuration tool for wireless vibrating wire collector
随机推荐
Sqli labs installation environment: ubuntu18 php7
sqli-labs Basic Challenges Less11-22
Pytorch uses tensorboard to realize visual summary
A small part is exposed on one or both sides of the swiper
基于浏览器的分屏阅读
应用实践:Paddle分类模型大集成者[PaddleHub、Finetune、prompt]
IDEA报错 Failed to determine a suitable driver class
thymeleaf设置disabled
NAT/NAPT地址转换(内外网通信)技术详解【华为eNSP】
Under the epidemic, the biomedical industry may usher in breakthrough development
Feiwo technology IPO meeting: annual revenue of 1.13 billion Hunan Cultural Tourism and Yuanli investment are shareholders
Gateway 网关报错 SERVICE_UNAVAILABLE
IDEA设置提交SVN时忽略文件配置
科隆新能源IPO被终止:拟募资6亿 先进制造与战新基金是股东
thymeleaf通过样式控制display是否显示
Data analysis business core
【cartographer_ros】八: 官方Demo参数配置和效果
MySQL and Navicat installation and stepping on pits
Business data analysis of CDA level1 knowledge point summary
Huawei ENSP router static route (the next hop address of the default route)