遇到个错误,记录一下
错误信息
2021-03-26 19:27:50.311 ERROR 17156 --- [ restartedMain] 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 0
刚建的spring boot项目,就启动不起来
排查了一下,发现是因为到了aop的依赖
因为啥报错我也不知道,我也是个菜鸡,应该时数据库找不到什么的吧,不清楚,但是我找到了解决错误的方法
解决方法
没错,就加了个这个就行了!!!