起因
前段时间一直忙着考试,终于有点时间能重新自己温习一下考试系统项目了.结果过了这段时间,居然不能运行了.
BUG信息
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-05-06 21:27:18.275 ERROR 10968 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :
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
属性找不到,并且无法加载合适的驱动类.