springboot爆出来的错误:
2023-05-19 09:01:10.813 ERROR 7288 --- [ 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
其实就如字面意思,我们需要配置一个url:
实测中发现,其实这个数据源的真实性并不影响使用,但是必须要有,否则就会报上面的错误。
加上后就成功了