异常信息:


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-03-24 15:58:03.177 ERROR 27492 --- [           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

在这里插入图片描述
这个bug是我在写黑马程序员的品达通用权限的时候遇到的,意思是:

配置数据源失败:'url’属性未指定,无法配置任何嵌入的数据源。

原因是没有拉取到nacos里的配置文件导致运行失败
找到父maven发现实我的命名控件id忘了修改(dev环境下的)
在这里插入图片描述
找到nacos的命名空间修改一下就可以了
在这里插入图片描述
在这里插入图片描述
运行成功!在这里插入图片描述

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐