Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2020-03-29 15:01:42.227 ERROR 9172 — [ 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 1
【错误原因】:数据源出现错误
【排查】:①application中url地址
②数据库配置
③pom文件中依赖的引入
我的错误原因在于druid依赖引入错误
正确:
错误:
【注】:druid数据源中有spring
同时网上有的让注释掉mybaties依赖的和在启动类中添加注解的,我这个没有按照网上的操作照常运行
mybaties保留