当前位置:网站首页>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

边栏推荐
- PS制作加载GIF图片教程
- Famous handwritten note taking software recruit CTO · coordinate Shenzhen
- 【cartographer_ros】八: 官方Demo参数配置和效果
- Depth estimation self-monitoring model monodepth2 paper summary and source code analysis [theoretical part]
- Wangeditor rich text editor
- Four methods of importing CSV text files into Excel
- 实现一个家庭安防与环境监测系统(一)
- [directory blasting tool] information collection stage: robots.txt, Yujian, dirsearch, dirb, gobuster
- 关于左值和右值的一些问题总结[通俗易懂]
- VS2017大型工厂ERP管理系统源码 工厂通用ERP源码
猜你喜欢

That day, I installed a database for my sister... Just help her sort out another shortcut

基于redis的keys、scan删除ttl为-1的key

飞沃科技IPO过会:年营收11.3亿 湖南文旅与沅澧投资是股东

How to make a set of code fit all kinds of screens perfectly?

maya建模练习

用GaussDB(for Redis)存画像,推荐业务轻松降本60%

Amd epyc 9664 flagship specification exposure: 96 core 192 threads 480MB cache 3.8ghz frequency

Teach you how to apply for SSL certificate

Keys and scan based on redis delete keys with TTL -1

【口才】谈判说服技巧及策略
随机推荐
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
手把手教你申请SSL证书
Use of Bluetooth function of vs wireless vibrating wire acquisition instrument
Doris学习笔记之与其他系统集成
VS2017大型工厂ERP管理系统源码 工厂通用ERP源码
The practice of depth estimation self-monitoring model monodepth2 in its own data set -- single card / multi card training, reasoning, onnx transformation and quantitative index evaluation
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
Depth estimation self-monitoring model monodepth2 paper summary and source code analysis [theoretical part]
Business analysis report and data visualization report of CDA level1 knowledge point summary
【学习记录】plt.show()闪退解决方法
Four methods of importing CSV text files into Excel
如何设计一个高并发系统?
Introducing mlops interpretation (I)
苹果手机端同步不成功,退出登录,结果再也登录不了了
2271. Maximum number of white bricks covered by blanket ●●
机械制造业数字化新“引擎”供应链协同管理系统助力企业精细化管理迈上新台阶
NAT/NAPT地址转换(内外网通信)技术详解【华为eNSP】
Realize a family security and environmental monitoring system (I)
~4.2 CCF 2021-12-1 sequence query