'url' attribute is not specified and no embedded datasource could be configured.

报错如下:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2018-08-06 10:04:25.845 ERROR 11256 — [ main] 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).

网上有好几种修改方法:

1、在启动类添加如下内容
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

2、在application.properties/或者application.yml文件中没有添加数据库配置信息

我的解决方式,统一配置添加相应的模块数据

你可能感兴趣的:('url' attribute is not specified and no embedded datasource could be configured.)