查找了很多办法都没法用还是报错,经过查找得知大概原因就是包冲突
报错如下
***************************
APPLICATION FAILED TO START
***************************
Description:
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
如果你各种配置都检查了都没问题还是报这个错误那就是你创SpringCloud的时候加包了而且是Mysql冲突,你只需把这些父级里面的pom.xml文件里面导入的包删除即可
(注意:只删除这些<dependencies>..........</dependencies>):
如下:
删除后运行成功: