错误描述:
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).
说明数据库链接有问题,pom文件中添加了MySQL相关的依赖如mybatis、jdbc等,启动时会根据这些依赖寻找相关的连接。
解决办法:
1、删除有关数据库的依赖。
消费者不需要数据库连接,删除pom中的相关依赖重新启动
2、添加数据库
如果需要数据库连接,在yml中配置数据库连接