在使用阿里云的oss时,由于项目是分模块的,在涉及oss模块里只想要用来上传文件,并不涉及访问数据库,因而出现了这个问题:
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
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
@SpringBootApplication
后添加 exclude = DataSourceAutoConfiguration.class
就正常启动。