报错:23.559 ERROR o.s.b.d.LoggingFailureAnalysisReporter:40

来源:5-1 大章列表查询功能开发1

慕姐9356413

2022-03-31

如图报错如下:
图片描述
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
23.559 ERROR o.s.b.d.LoggingFailureAnalysisReporter:40


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 0

请问是什么原因,怎么解决?

写回答

1回答

甲蛙

2022-04-01

应该是application.properties里没有配置数据库,或配置的key名不对

//img.mukewang.com/szimg/6246c76109b5324408150189.jpg

下载视频          
0
4
甲蛙
回复
慕姐9356413
首先确认依赖不要写错:system依赖server,business也依赖server,system和business互不依赖。 再确认配置文件位置不要写错,system和business的配置文件都写在resource根目录下,server的配置文件是放在resources/config目录下,否则配置文件位置冲突的话就会不生效
2022-04-07
共4条回复

Spring Cloud+ Vue前后端分离开发企业级在线视频系统

全网稀缺课程 市场热门项目+主流框架 一课掌握前后端技术

1743 学习 · 1697 问题

查看课程