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 (the profiles dev are currently active).
初次运用oss,在启动器启动的时候报错显示该内容,说明oss默认启动的时候需要配置数据库源,这里有两种解决方案:如果模块需要用到数据库就按照要求配置数据源,否则在启动类上的注解配置上忽略数据库配置**@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)**