Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-09-07 10:14:48.935 [main] ERROR
org.springframework.boot.diagnostics.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).
根据上面的提示,以本人的项目为例子,这个提示是缺少了驱动url,但是我的项目不需要这些db操作,所以要把相关的jar包给删除掉,例如mysql、jpa这些需要删除掉,删除后,就可以正常运行了!